import { KeyPair, keyStores } from 'near-api-js';
export declare class BackgroundKeyStore extends keyStores.KeyStore {
    private prefix;
    constructor(keyStorePrefix?: string);
    setKey(networkId: string, accountId: string, keyPair: KeyPair): Promise<void>;
    getKey(networkId: string, accountId: string): Promise<KeyPair>;
    removeKey(networkId: string, accountId: string): Promise<void>;
    clear(): Promise<void>;
    getNetworks(): Promise<string[]>;
    getAccounts(networkId: string): Promise<string[]>;
    private storageKeyForSecretKey;
    private storageKeys;
}
