// Type definitions for AWS Lambda Mock Context SDK 1.0 // Project: https://github.com/moskalyk/typed-aws-lambda-mock-context // Definitions by: Morgan Moskalyk , Anand Nimkar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 declare function context(options?: Options): Context; export = context; interface Context { Promise: Promise; callbackWaitsForEmptyEventLoop: boolean; functionName: string; functionVersion: string; invokedFunctionArn: string; memoryLimitInMB: string; awsRequestId: string; invokeid: string; logGroupName: string; logStreamName: string; getRemainingTimeInMillis: number; succeed(result: any): Promise; fail(err: any): Promise; done(err: any, result: any): Promise; } interface Options { region?: string; account?: string; functionName?: string; functionVersion?: string; memoryLimitInMB?: string; alias?: string; }