/** * Shared helpers for StorageIdb filter methods. * * These are pure utility functions extracted to reduce cognitive complexity * in the large `filter*` methods while keeping their semantics unchanged. */ import { IDBPDatabase } from 'idb'; import { TableCertificate, TableCertificateField, TableCommission, TableMonitorEvent, TableOutput, TableOutputBasket, TableOutputTag, TableOutputTagMap, TableProvenTx, TableProvenTxReq, TableSyncState, TableTransaction, TableTxLabel, TableTxLabelMap } from './schema/tables'; import { StorageIdbSchema } from './schema/StorageIdbSchema'; export declare function dateMatches(a: Date | undefined, b: Date | undefined): boolean; export declare function matchesOutputTagMapPartial(r: TableOutputTagMap, partial: Partial): boolean; export declare function matchesProvenTxReqPartial(r: TableProvenTxReq, partial: Partial): boolean; export declare function matchesProvenTxPartial(r: TableProvenTx, partial: Partial): boolean; export declare function matchesTxLabelMapPartial(r: TableTxLabelMap, partial: Partial): boolean; export declare function matchesCertificateFieldPartial(r: TableCertificateField, partial: Partial): boolean; export declare function matchesCertificatePartial(r: TableCertificate, partial: Partial): boolean; export declare function matchesCommissionPartial(r: TableCommission, partial: Partial): boolean; export declare function matchesMonitorEventPartial(r: TableMonitorEvent, partial: Partial): boolean; export declare function matchesOutputBasketPartial(r: TableOutputBasket, partial: Partial): boolean; export declare function matchesOutputPartial(r: TableOutput, partial: Partial): boolean; export declare function matchesOutputTagPartial(r: TableOutputTag, partial: Partial): boolean; export declare function matchesSyncStatePartial(r: TableSyncState, partial: Partial): boolean; export declare function matchesTransactionPartial(r: TableTransaction, partial: Partial): boolean; export declare function matchesTxLabelPartial(r: TableTxLabel, partial: Partial): boolean; export declare function upgradeProvenTxs(db: IDBPDatabase): void; export declare function upgradeProvenTxReqs(db: IDBPDatabase): void; export declare function upgradeUsers(db: IDBPDatabase): void; export declare function upgradeCertificates(db: IDBPDatabase): void; export declare function upgradeCertificateFields(db: IDBPDatabase): void; export declare function upgradeOutputBaskets(db: IDBPDatabase): void; export declare function upgradeTransactions(db: IDBPDatabase): void; export declare function upgradeCommissions(db: IDBPDatabase): void; export declare function upgradeOutputs(db: IDBPDatabase): void; export declare function upgradeOutputTags(db: IDBPDatabase): void; export declare function upgradeOutputTagsMap(db: IDBPDatabase): void; export declare function upgradeTxLabels(db: IDBPDatabase): void; export declare function upgradeTxLabelsMap(db: IDBPDatabase): void; export declare function upgradeMonitorEvents(db: IDBPDatabase): void; export declare function upgradeSyncStates(db: IDBPDatabase): void; /** Upgrade handler for every store that existed at schema version 1. */ export declare function upgradeAllStoresV1(db: IDBPDatabase): void; //# sourceMappingURL=idbHelpers.d.ts.map