import { Observable } from 'rxjs'; /** * Reads the keys present in the store * * @example * const database$ = connectIndexedDb('test_db'); * const autoIncrementStore$ = database$.pipe(getObjectStore('test_autoincrement_store', { autoIncrement: true })); * * // we append one item to the store * autoIncrementStore$ * .pipe( * addItem('item') * ).subscribe() * * const storeKeys$: Observable = autoIncrementStore$ * .pipe( * keys() * ); * * storeKeys$.subscribe((keys: IDBValidKey[]) => { * // You can display the keys in UI * }); * * @remarks Emits an empty array when the database gets deleted * @returns Observable */ export declare function keys(): (s$: Observable) => Observable; /** * Reads the values from the store * * @example * const database$ = connectIndexedDb('test_db'); * const autoIncrementStore$ = database$.pipe(getObjectStore('test_autoincrement_store', { autoIncrement: true })); * * // we append one item to the store * autoIncrementStore$ * .pipe( * addItem('item') * ).subscribe() * * const storeKeys$: Observable = autoIncrementStore$ * .pipe( * values() * ); * * storeKeys$.subscribe((keys: string[]) => { * // You can display the keys in UI * }); * * @remarks Emits an empty array when the database gets deleted * @returns Observable */ export declare function values(): (s$: Observable) => Observable; /** * Reads the entries (key-value pairs) from the store * * @example * const database$ = connectIndexedDb('test_db'); * const autoIncrementStore$ = database$.pipe(getObjectStore('test_autoincrement_store', { autoIncrement: true })); * * // we append one item to the store * autoIncrementStore$ * .pipe( * addItem('item') * ).subscribe() * * const entries$: Observable = autoIncrementStore$ * .pipe( * entries() * ); * * entries$.subscribe((entries: { key: IDBValidKey, value: any }[]) => { * // You can display the keys and their corresponding values in UI * }); * * @remarks Emits an empty array when the database gets deleted * @returns Observable */ export declare function entries(): (s$: Observable) => Observable<{ key: IDBValidKey; value: T; }[]>;