import fsSync from 'node:fs'; import { Readable } from 'node:stream'; import { AppContext } from '../context.js'; import { Middleware } from '../util/http.js'; export declare function createMiddleware(ctx: AppContext, { prefix }?: { prefix?: string; }): Middleware; export interface BlobCache { get(fileId: string): Promise; put(fileId: string, stream: Readable): Promise; clear(fileId: string): Promise; clearAll(): Promise; } export declare class BlobDiskCache implements BlobCache { tempDir: string; constructor(basePath?: string); get(fileId: string): Promise; put(fileId: string, stream: Readable): Promise; clear(fileId: string): Promise; clearAll(): Promise; } //# sourceMappingURL=server.d.ts.map