// Type definitions for @financial-times/s3o-lambda // Project: https://github.com/Financial-Times/s3o-lambda // Definitions by: Charlie Briggs export = S3OLambda; declare function S3OLambda( event: any, callback: (err: any, success: any) => void, options?: S3OLambda.HandlerOptions ): Promise; declare namespace S3OLambda { export interface CookieOptions { httpOnly?: boolean; maxAge?: string | number; secure?: boolean; } type GetHostFunc = (event: any) => string; type GetPathFunc = (event: any, host: string) => string; type GetS3oClientNameFunc = (event: any) => string; export interface HandlerOptions { redirect?: boolean; protocol?: number; username?: string; password?: string; cookies?: CookieOptions; getHost?: string | GetHostFunc; getPath?: string | GetPathFunc; getS3oClientName?: string | GetS3oClientNameFunc; } export interface AuthenticationResponse { username?: string; isSignedIn: boolean; } }