import { Context } from '../../context/context.js'; import { Disposable } from '../../utils/Disposable.js'; export declare class IdbService extends Disposable { protected db: IDBDatabase; protected readonly ctx: Pick; protected log?: Context['log']; private globalAbortController; constructor(db: IDBDatabase, ctx: Pick); createTransaction: (storeNames: string[], opts?: { mode?: "readonly" | "readwrite"; abort?: AbortSignal; }) => IDBTransaction; run: (storeName: string, getRequest: (store: IDBObjectStore) => IDBRequest, opts?: { mode?: "readonly" | "readwrite"; transaction?: IDBTransaction; abort?: AbortSignal; }) => Promise; runAll: (storeName: string, getRequests: (store: IDBObjectStore) => IDBRequest[], opts?: { mode?: "readonly" | "readwrite"; transaction?: IDBTransaction; abort?: AbortSignal; }) => Promise; iterate: (storeName: string, getRequest: (store: IDBObjectStore) => IDBRequest | IDBRequest[], iterator: (value: T, store: IDBObjectStore, cursor: IDBCursorWithValue) => boolean | void, opts?: { mode?: "readonly" | "readwrite"; transaction?: IDBTransaction; abort?: AbortSignal; }) => Promise; clear: (storeName: string, transaction?: IDBTransaction) => Promise; private onVersionChange; }