import * as hono_aws_lambda from 'hono/aws-lambda'; import * as hono_types from 'hono/types'; import { BlankEnv } from 'hono/types'; import { Env, Hono } from 'hono'; import { H as HonoServerOptionsBase, W as WithoutWebsocket } from '../helpers-BXdVojwF.js'; export { c as createGetLoadContext } from '../helpers-BXdVojwF.js'; import 'hono/ws'; import 'react-router'; interface CognitoIdentity { cognitoIdentityId: string; cognitoIdentityPoolId: string; } interface ClientContext { client: ClientContextClient; Custom?: any; env: ClientContextEnv; } interface ClientContextClient { installationId: string; appTitle: string; appVersionName: string; appVersionCode: string; appPackageName: string; } interface ClientContextEnv { platformVersion: string; platform: string; make: string; model: string; locale: string; } /** * {@link Handler} context parameter. * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}. */ interface LambdaContext { callbackWaitsForEmptyEventLoop: boolean; functionName: string; functionVersion: string; invokedFunctionArn: string; memoryLimitInMB: string; awsRequestId: string; logGroupName: string; logStreamName: string; identity?: CognitoIdentity | undefined; clientContext?: ClientContext | undefined; getRemainingTimeInMillis(): number; } type Callback = (error?: Error | string | null, result?: TResult) => void; type Handler = (event: TEvent, context: LambdaContext, callback: Callback) => void | Promise; type InvokeMode = "default" | "stream"; interface HonoAWSServerOptions extends Omit, "port"> { /** * The invoke mode to use * * Defaults to `default` * * {@link https://hono.dev/docs/getting-started/aws-lambda#lambda-response-streaming} */ invokeMode: InvokeMode; } type HonoServerOptions = HonoAWSServerOptions & Omit, "useWebSocket">; /** * Create a Hono server * * @param config {@link HonoServerOptions} - The configuration options for the server */ declare function createHonoServer(options?: HonoServerOptions): Promise | Handler | ((event: L, lambdaContext?: hono_aws_lambda.LambdaContext) => Promise; } ? { headers?: undefined; multiValueHeaders: Record; } : { headers: Record; multiValueHeaders?: undefined; })>)>; export { type HonoServerOptions, createHonoServer };