export declare class WriteQueue { private pendingWrites private flushPromise private readonly batchSize private readonly flushInterval private lastFlush constructor(batchSize?: number, flushIntervalMs?: number) write(filePath: string, content: string): Promise /** * Eagerly flush writes for a specific file path. * Call this before returning import URLs to ensure file exists. * If a concurrent batch flush() already consumed the pending entry, we * must wait for it to finish — otherwise the file (and its parent * directory) may not exist yet when the caller proceeds (the .map * sidecar write and the import of the returned URL both rely on the * file being on disk). Cold-cache races on a freshly mkdir'ed directory * surfaced this as transient ENOENTs that dropped whole test files. */ flushPath(filePath: string): Promise /** * Flush all pending writes to disk in parallel */ flush(): Promise get pendingCount(): number } export declare const writeQueue: WriteQueue