UNPKG

serverless-aws-lambda

Version:

AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.

27 lines (26 loc) 862 B
import { Handlers } from "./handlers"; import { type ILambdaMock } from "../runtime/rapidApi"; interface IDaemonConfig { debug: boolean; } export declare class Daemon extends Handlers { #private; runtimeConfig: any; customOfflineRequests: { method?: string | string[]; filter: RegExp | string; callback: (req: any, res: any) => Promise<any> | any | undefined; }[]; customBuildCallback?: Function; onReady?: (port: number, ip: string) => any; stop(cb?: (err?: any) => void): void; setApiKeys(keys?: any[]): void; constructor(config?: IDaemonConfig); get port(): number; set port(p: number); set serve(root: string); listen(port?: number, callback?: Function): void; fakeRebuildEmitter: () => Promise<void>; load(lambdaDefinitions: ILambdaMock[]): Promise<void>; } export {};