import type { ManagedKey, ManagedKeyPair, ManagedKeyStore, ManagedPrivateKey } from './types/managed-key.js'; import { IDManagedAgent } from './types/agent.js'; /** * An implementation of `ManagedKeyStore` that stores key metadata and * public key material in a DWN. * * An instance of this class can be used by `KeyManager` or * an implementation of `KeyManagementSystem`. */ export declare class KeyStoreDwn implements ManagedKeyStore { private _keyRecordProperties; constructor(options?: { schema: string; }); deleteKey(options: { agent: IDManagedAgent; context?: string; id: string; }): Promise; findKey(options: { id: string; agent: IDManagedAgent; context?: string; }): Promise; findKey(options: { alias: string; agent: IDManagedAgent; context?: string; }): Promise; getKey(options: { agent: IDManagedAgent; context?: string; id: string; }): Promise; importKey(options: { agent: IDManagedAgent; context?: string; key: ManagedKey | ManagedKeyPair; }): Promise; listKeys(options: { agent: IDManagedAgent; context?: string; }): Promise<(ManagedKey | ManagedKeyPair)[]>; updateKey(options: { agent: IDManagedAgent; context?: string; } & Pick): Promise; private decodeKey; private encodeKey; private getAuthor; private getKeyRecords; } /** * An implementation of `ManagedKeyStore` that stores key metadata and * public key material in memory. * * An instance of this class can be used by `KeyManager` or * an implementation of `KeyManagementSystem`. */ export declare class KeyStoreMemory implements ManagedKeyStore { /** * A private field that contains the Map used as the in-memory key-value store. */ private store; deleteKey({ id }: { id: string; }): Promise; findKey(options: { id: string; }): Promise; findKey(options: { alias: string; }): Promise; getKey({ id }: { id: string; }): Promise; importKey({ key }: { key: ManagedKey | ManagedKeyPair; }): Promise; listKeys(): Promise<(ManagedKey | ManagedKeyPair)[]>; updateKey(options: Pick): Promise; } /** * An implementation of `ManagedKeyStore` that stores private key * material in a DWN. * * An instance of this class can be used by an implementation of * `KeyManagementSystem`. */ export declare class PrivateKeyStoreDwn implements ManagedKeyStore { private _keyRecordProperties; deleteKey(options: { agent: IDManagedAgent; context?: string; id: string; }): Promise; findKey(): Promise; getKey(options: { agent: IDManagedAgent; context?: string; id: string; }): Promise; importKey(options: { agent: IDManagedAgent; context?: string; key: Omit; }): Promise; listKeys(options: { agent: IDManagedAgent; context?: string; }): Promise; updateKey(): Promise; private decodeKey; private encodeKey; private getAuthor; private getKeyRecords; } /** * An implementation of `ManagedKeyStore` that stores private key * material in memory. * * An instance of this class can be used by an implementation of * `KeyManagementSystem`. */ export declare class PrivateKeyStoreMemory implements ManagedKeyStore { /** * A private field that contains the Map used as the in-memory key-value store. */ private store; deleteKey({ id }: { id: string; }): Promise; findKey(): Promise; getKey({ id }: { id: string; }): Promise; importKey({ key }: { key: Omit; }): Promise; listKeys(): Promise; updateKey(): Promise; } //# sourceMappingURL=store-managed-key.d.ts.map