import { OutgoingHttpResponse } from '../OutgoingHttpResponse.js'; import { IncomingHttpEvent, IncomingHttpEventOptions } from '../IncomingHttpEvent.js'; import { AdapterContext, AdapterHookListenerContext } from '@stone-js/core'; /** * Defines the adapter context type for handling HTTP events in a Node.js server or AWS Lambda function. */ export type AdapterContextType = AdapterContext; /** * Ensure CORS headers at the "onBuildingRawResponse" stage. * * This adapter hook ensures that CORS headers are applied even when the middleware is not executed. * It is useful for scenarios where an error occurs before reaching the middleware chain * or when a request bypasses the intended processing. * * @param options - The adapter hook listener context containing the blueprint and context. */ export declare const EnsureCorsHeadersHook: ({ blueprint, context }: AdapterHookListenerContext) => Promise;