import type { IncomingMessage, ServerResponse } from 'node:http'; export declare const parsePathname: (url: string | undefined, fallback: string) => string; export declare const normalizePath: (path: string) => string; export declare const extractBearerToken: (header: string | undefined) => string | undefined; export declare const extractBasicAuth: (header: string | undefined) => { username: string; password: string; } | undefined; export declare const isAuthorized: (req: IncomingMessage, token: string) => boolean; export declare const isBasicAuthorized: (req: IncomingMessage, expected: { username: string; password: string; }) => boolean; export declare const applyCorsHeaders: (req: IncomingMessage, res: ServerResponse, allowedOrigins?: string[]) => boolean; //# sourceMappingURL=http-helpers.d.ts.map