import { ServerResponse } from "node:http"; import { IncomingMessage as IncomingMessage$1, NextFunction } from "connect"; //#region src/middleware.d.ts type Middleware = (req: IncomingMessage$1, res: ServerResponse, next: NextFunction) => void; interface PluginOptions { root: string; cacheRoot: string; } interface AssetsDeps { cacheImage: (cacheRoot: string, src: string) => Promise; findOrCreateCaptions: (cacheRoot: string, src: string) => Promise; } interface FilesDeps { generateTrack: (cacheRoot: string, src: string, trackUrl: string) => Promise; generateScrubTrack: (cacheRoot: string, src: string) => Promise; generateTrackFragmentIndex: (cacheRoot: string, src: string) => Promise; md5FilePath: (src: string) => Promise; } declare function createAssetsApiMiddleware(options: PluginOptions, deps: AssetsDeps): Middleware; declare function createLocalFilesApiMiddleware(options: PluginOptions, deps: FilesDeps): Middleware; declare function handleClearCache(req: IncomingMessage$1, res: ServerResponse, cacheRoot: string): Promise; //#endregion export { createAssetsApiMiddleware, createLocalFilesApiMiddleware, handleClearCache }; //# sourceMappingURL=middleware.d.ts.map