import { Scope } from '../components/Scope.ts';
import { IncomingMessage } from 'node:http';
import { type HttpOptions } from './Server.ts';
export declare const universalHeaders: [string, string][];
export declare const bunServeConfigs: Record<string | number, any>;
export declare function registerUdsCleanupPaths(socketPath: string, yamlPath: string): void;
export declare function cleanupUdsFiles(): void;
/** Write YAML metadata for a UDS mirror socket, describing the TLS certs from the corresponding secure server. */
export declare function writeUdsMetadata(yamlPath: string, port: number | string, secureServer: any): void;
/** Clean all files in the sockets directory. Call from main thread on process startup. */
export declare function cleanupSocketsDirectory(): void;
export declare function handleApplication(scope: Scope): void;
export declare function getHttpOptions(): HttpOptions;
export declare function deliverSocket(fdOrSocket: any, port: any, data: any): any;
export declare function proxyRequest(message: any): void;
export declare function registerServer(server: any, port: any, checkPort?: boolean): void;
export declare function httpServer(listener: any, options: any): any[];
export declare function registerBunFastifyInstance(port: string | number, instance: any): void;
export declare function enableProxyProtocol(httpServer: any): void;
export declare function logRequest(nodeRequest: IncomingMessage, status: number, requestId: number, executionTime?: number): void;
export declare function getRequestId(): number;
