import type { MutableKeyEntry } from '@kokuin/token'; import type { KeyStorage } from './types.js'; export type ElectronKeyEntryParams = { storage: KeyStorage; keyID: string; key?: Uint8Array; allowInsecureStorage?: boolean; lockPath?: string; }; export declare class ElectronKeyEntry implements MutableKeyEntry { #private; constructor(params: ElectronKeyEntryParams); get keyID(): string; get(): Uint8Array | null; getAsync(): Promise; set(privateKey: Uint8Array): void; setAsync(privateKey: Uint8Array): Promise; /** * The stored key, generating one if absent. Synchronous, and therefore **not** cross-process * safe. Throws when a `lockPath` is set rather than silently dropping the guarantee. */ provide(): Uint8Array; provideAsync(): Promise; remove(): void; removeAsync(): Promise; }