//#region src/resources/store.d.ts /** Strict v4 UUID — the only shape a resource id may take. */ declare const UUID_V4: RegExp; type FileStore = { /** TTL the store enforces, in seconds — surfaced so callers can report `expiresInSeconds`. */readonly ttlSeconds: number; /** Writes `{id}.{ext}` and returns the generated UUID. */ put(buf: Buffer, ext: string): { id: string; }; /** Path for `id` if a file exists and is within TTL; otherwise unlinks-if-stale and returns null. */ getPath(id: string): string | null; /** Unlinks every file older than TTL. */ sweep(): void; /** Starts a single unref'd background sweep; idempotent across calls. */ startSweep(): void; }; type FileStoreOptions = { readonly dir: string; readonly ttlSeconds: number; }; declare const createFileStore: ({ dir, ttlSeconds }: FileStoreOptions) => FileStore; /** Default store wired to env-derived config; the deployed server's transient PDF cache. */ declare const resourceStore: FileStore; //#endregion export { FileStore, FileStoreOptions, UUID_V4, createFileStore, resourceStore }; //# sourceMappingURL=store.d.ts.map