import type { ResolvedConfig } from './config.js'; export interface StoredFile { filename: string; path: string; sizeBytes: number; } /** * Sanitize a filename to alphanumeric, dots, and dashes only. */ export declare function sanitizeFilename(name: string): string; /** * Derive the .beacon directory path from the database URL. * e.g. "file:.beacon/beacon.db" → ".beacon" */ export declare function extractDirFromDbUrl(url: string): string; /** * Store a file to disk under .beacon/storage/{taskId}/{filename}. * Returns metadata about the stored file. * Throws if the file exceeds the 5MB size limit. */ export declare function storeFile(config: ResolvedConfig, taskId: string, file: { name: string; arrayBuffer(): Promise; size: number; }): Promise; //# sourceMappingURL=storage.d.ts.map