//#region ../cache/src/errors.d.ts /** * Thrown when a driver needs `indexedDB` and the runtime does not have * it — server-side rendering, a Node build step, a worker without the * API, or a browser running in a mode that blocks storage entirely. * * Failing loudly beats silently degrading to "cache miss": a cache that * quietly stops persisting looks like a working cache right up until the * data that was supposed to be there is gone. */ declare class IndexedDBUnavailableError extends Error { constructor(message?: string); } /** * Thrown when the storage backend refuses a write because the origin is * out of quota. * * The browser's own `QuotaExceededError` is a `DOMException` whose * message says nothing about which cache overflowed, so it is wrapped * with the offending key and the original error kept as `cause`. */ declare class CacheQuotaExceededError extends Error { readonly key: string; readonly cause?: unknown | undefined; constructor(key: string, cause?: unknown | undefined); } /** * Thrown when a driver is asked to open a database that another tab is * holding open at an older version. */ declare class IndexedDBBlockedError extends Error { constructor(databaseName: string); } //#endregion export { CacheQuotaExceededError, IndexedDBBlockedError, IndexedDBUnavailableError }; //# sourceMappingURL=errors.d.mts.map