import { IDBPDatabase } from 'idb';
import { AnyBlock, AnyLink, DbMeta } from './types';
import { CarStore as CarStoreBase, HeaderStore as HeaderStoreBase } from './store';
export declare class CarStore extends CarStoreBase {
    tag: string;
    keyId: string;
    idb: IDBPDatabase<unknown> | null;
    _withDB(dbWorkFun: (arg0: any) => any): Promise<any>;
    load(cid: AnyLink): Promise<AnyBlock>;
    save(car: AnyBlock): Promise<void>;
    remove(cid: AnyLink): Promise<void>;
}
export declare class HeaderStore extends HeaderStoreBase {
    tag: string;
    keyId: string;
    decoder: TextDecoder;
    encoder: TextEncoder;
    constructor(name: string);
    headerKey(branch: string): string;
    load(branch?: string): Promise<DbMeta | null>;
    save(meta: DbMeta, branch?: string): Promise<void>;
}
