import { type Ed25519Keypair } from "./crypto.js"; import { type KeyStoreBackend } from "./identity-keyring.js"; export { addPeer, listPeers, listOwnerPubkeys, snapshotOwnerPubkeys, conditionalRemovePeer, conditionalRollbackPeer, removePeer, } from "./owner_storage.js"; export type { PeerRecord, OwnerStorageToken, OwnerStorageSnapshotRecord, ConditionalPeerRemoval, PeerWriteReceipt, ConditionalPeerRollback, } from "./owner_storage.js"; export { _setKeyringOperationTimeoutForTest, _setNativeBindingErrorForTest, KeyringMutationTimeoutError, KeyringReadTimeoutError, } from "./identity-keyring.js"; export type { KeyStoreBackend } from "./identity-keyring.js"; export { IdentityLockTimeoutError } from "./identity-lock.js"; export declare class KeyringUnavailableError extends Error { constructor(cause: unknown); } export declare class PairedIdentityMissingError extends Error { constructor(pairedCount: number, cause: unknown); } type IdentityFileErrorCategory = "read_failed" | "invalid_format"; export declare class IdentityFileError extends Error { readonly identityPath: string; readonly category: IdentityFileErrorCategory; constructor(identityPath: string, category: IdentityFileErrorCategory); } export declare class KeyringIdentityError extends Error { readonly service: string; constructor(service: string); } export declare function _setKeyStoreBackendForTest(value: KeyStoreBackend | null): void; export declare function _setKeyringExpectedForTest(value: boolean | null): void; export declare function _setKeyringRetryForTest(attempts: number | null, delayMs?: number): void; export declare function _setIdentityLockTimingForTest(waitTimeoutMs: number | null, pollIntervalMs?: number): void; /** * Returns the stable Host identity. Existing file identity wins; otherwise all * keyring reads, migration, generation, and persistence run under the fixed * cross-process identity lock. Every source is read again after lock acquisition. */ export declare function getOrCreateEd25519Keypair(): Promise; export declare const _IDENTITY_FILE_FOR_TEST: string; export declare const _IDENTITY_LOCK_FILE_FOR_TEST: string; export declare const _unlinkIdentityFileForTest: () => Promise;