import type { Express, Request, Response } from "express"; import type { WandStorage } from "./storage.js"; export interface ServerFileRoutesDependencies { storage: WandStorage; defaultCwd: string; } /** Persist a cwd to recent paths. Used by REST and session creation hooks. */ export declare function recordRecentPath(storage: WandStorage, cwd: string | undefined | null): void; export declare function registerFileRoutes(app: Express, deps: ServerFileRoutesDependencies): void; export declare function streamFileWithRange(req: Request, res: Response, options: { filePath: string; size: number; contentType: string; disposition?: string; headers?: Record; readErrorMessage?: string; }): void;