export interface ParsedDelegateBundle { readonly mandate: Record; readonly mandateId: string; readonly subjectDid: string; readonly granteeId: string; readonly granteePubkeyMultibase: string; readonly delegateSeedHex: string; } /** * Read the bundle (Blob or already-decoded string) into UTF-8 text. */ export declare function readDelegateBundleText(file: Blob | string): Promise; /** * Parse a delegate-bundle JSON string (legacy single-mandate shape, * `aithos_delegate_version: "0.1.0"`). Throws {@link AithosSDKError} * with `code === "auth_invalid_delegate_bundle"` if malformed. * * Prefer {@link parseDelegateBundleAny} at call sites that must also * accept the cumulative v2 pack — this function stays single-mandate * for callers/tests that specifically exercise the 0.1.0 format. */ export declare function parseDelegateBundle(text: string): ParsedDelegateBundle; /** * Parse EITHER a legacy single-mandate bundle (`aithos_delegate_version`) * OR a cumulative v2 pack (`"aithos-mandate-pack": "2"`, emitted by * `createBundle` / {@link buildBundlePackV2}). Always returns a NON-EMPTY * list of parsed mandates that share one delegate seed. Throws * {@link AithosSDKError} (`auth_invalid_delegate_bundle`) if malformed. */ export declare function parseDelegateBundleAny(text: string): ParsedDelegateBundle[]; //# sourceMappingURL=delegate-bundle.d.ts.map