import type { MaybeGenericParser } from '../../../parsers/types.js'; import type { EventHandlerFn } from '../../common/event.js'; import type { RawRequest } from '../../common/raw-aws.js'; import type { DefaultServices } from '../../types.js'; import type { SecurityRequirements } from '../types.js'; import { handleHTTPEvent } from './handler.js'; import type { AuthorizerSchema, HTTPHandler, Responses } from './types.js'; export declare function findHeader(name: string): (request: RawRequest) => string | undefined; export declare function restApiHandler = AuthorizerSchema<'rest'>>(definition: D & HTTPHandler, { _kernel, }?: { _kernel?: typeof handleHTTPEvent; }): D & EventHandlerFn; export declare function httpApiHandler = AuthorizerSchema<'http'>>(definition: D & HTTPHandler, { _kernel }?: { _kernel?: typeof handleHTTPEvent; }): D & EventHandlerFn;