import { contractLayer } from '../std-table/contract/index.js'; import type { TableDefinition } from '../std-table/definition/index.js'; import { makeIDBDatabase, type IDBDatabaseConfig, type IDBConnection } from './database/index.js'; import { setupIDBTable } from './upgrade/index.js'; export interface IDBConfig { readonly database: IDBConnection; readonly storeName?: string; } type TableSource = Pick, 'logicalName' | 'primary' | 'localSecondaryIndexes' | 'globalSecondaryIndexes' | 'snapshot'>; export interface IDBTable { readonly storeName: string; readonly layer: ReturnType>; readonly setup: ReturnType; } declare const make: (table: TableSource, config: IDBConfig) => IDBTable; export declare const IDB: { readonly make: typeof make; readonly database: typeof makeIDBDatabase; }; export type { IDBDatabaseConfig, IDBConnection }; //# sourceMappingURL=idb.d.ts.map