import type { IncomingMessage, ServerResponse } from "node:http"; import type { ResolvedStaticMount } from "../frontend/StaticMountRegistry.js"; import type { StaticMountRegistry } from "../frontend/StaticMountRegistry.js"; export interface StaticMount extends ResolvedStaticMount { spaExclude?: string[]; } interface LoggerLike { warn: (message: string, meta?: Record) => void; error: (message: string, meta?: Record) => void; } interface MetricsLike { httpRequestEnd: (durationSeconds: number, labels: Record) => void; } interface StaticFileServerOptions { staticRegistry: StaticMountRegistry; logger: LoggerLike; metrics: MetricsLike; } export declare class StaticFileServer { private readonly _staticRegistry; private readonly _logger; private readonly _metrics; constructor(options: StaticFileServerOptions); resolveMountForRequest(req: IncomingMessage, pathname: string): ResolvedStaticMount | null; tryServeStatic(req: IncomingMessage, res: ServerResponse, start: number): Promise; private _proxyStaticToDevServer; private _resolveStaticFile; private _resolveExistingStaticFile; private _isWithinRoot; private _parseRange; private _staticCacheControl; } export {}; //# sourceMappingURL=StaticFileServer.d.ts.map