import { IncomingMessage } from "http"; import { Socket } from "net"; import { RequestValidatorAbstract } from "@bunt/app"; import { Responder } from "./Responder.js"; import { Cookie } from "./Response/Cookie.js"; export type ServerHeadersResolver = (request: Responder) => { [key: string]: string; }; export type ServerRequestHandler = (request: Responder) => T; export interface ICorsOptions { origin?: string | ServerRequestHandler | "origin"; credentials?: boolean; } export interface IRequestMessageOptions { validators?: RequestValidatorAbstract | RequestValidatorAbstract[]; } export interface IResponderOptions extends IRequestMessageOptions { headers?: { [key: string]: string; } | ServerHeadersResolver; } export interface IRequestSendOptions { code: number; status?: string; headers?: { [key: string]: string; }; cookies?: Cookie[]; } export interface IProtocolAcceptor { protocol: string; handle: (req: IncomingMessage, socker: Socket, head: Buffer) => void; } //# sourceMappingURL=interfaces.d.ts.map