import type { Handler } from 'aws-lambda'; import type { Options as FastGlobOptions } from 'fast-glob'; import type { FastifyReply, FastifyRequest, RequestGenericInterface } from 'fastify'; import type { CedarHandler, CedarRouteRecord } from '@cedarjs/api/runtime'; export declare const LAMBDA_FUNCTIONS: Map; export declare const CEDAR_HANDLERS: Map; /** * Exports a copy of the Cedar route manifest. * * This is intended to be used to later build WinterTC compatible `fetch` * exports */ export declare const getCedarRouteManifest: () => CedarRouteRecord[]; export declare const setLambdaFunctions: (foundFunctions: string[]) => Promise; type LoadFunctionsFromDistOptions = { fastGlobOptions?: FastGlobOptions; discoverFunctionsGlob?: string | string[]; }; export declare const loadFunctionsFromDist: (options?: LoadFunctionsFromDistOptions) => Promise; interface LambdaHandlerRequest extends RequestGenericInterface { Params: { routeName: string; }; } /** * This will take a fastify request * Then convert it to a lambdaEvent, and pass it to the the appropriate handler * for the routeName * The CEDAR_HANDLERS and LAMBDA_FUNCTIONS maps have been populated already by * this point */ export declare const lambdaRequestHandler: (req: FastifyRequest, reply: FastifyReply) => Promise; export {}; //# sourceMappingURL=lambdaLoader.d.ts.map