import type { BrowserIdentity } from "@aithos/protocol-client"; export interface ParsedRecoveryFile { readonly handle: string; readonly displayName: string; readonly did: string; readonly seedsHex: { readonly root: string; readonly public: string; readonly circle: string; readonly self: string; /** Optional dedicated #data sphere seed (absent on legacy recovery files). */ readonly data?: string; }; } /** * Parse a recovery JSON string. Throws {@link AithosSDKError} with * `code === "auth_invalid_recovery_file"` if the input is malformed. */ export declare function parseRecoveryFile(text: string): ParsedRecoveryFile; /** Read the file (Blob or already-decoded string) into UTF-8 text. */ export declare function readRecoveryFileText(file: Blob | string): Promise; /** * Build the recovery-file JSON blob from a fresh BrowserIdentity. Used * by `signUp` so the same writer/reader code handles both ends of the * round-trip. */ export declare function serializeRecoveryFile(identity: BrowserIdentity): { readonly text: string; readonly filename: string; }; //# sourceMappingURL=recovery-file.d.ts.map