import { Observable } from 'rxjs'; /** * Deletes the IDBDatabase based on the provided string. * * @example * const database$ = connectIndexedDb('test_db'); * * // subscribing to the observable will create the database * database$.subscribe({ * next: (db: IDBDatabase) => console.log(db.name), * error: (e) => console.error(e), * complete: () => console.warn('database deleted') * }) * * // we delete the database * deleteIndexedDb('test_db').subscribe() * // the `database deleted` warning is displayed in the console. * * @remarks This method completes all the observables connected to the database stream that gets deleted. If you plan on deleting databases, make sure you reinitialise your database streams after a deletion. * @throws {Error} If the database does not exist. * @param name - The database name you want to delete * @returns An Observable stream that immediately emits and completes when the deletion occurs. */ export declare function deleteIndexedDb(name: string): Observable;