/** The Delegate SD-JWT text this module implements. */ export declare const DELEGATE_SD_JWT_REVISION = "draft-gco-oauth-delegate-sd-jwt-00"; /** One link of a chain: its signed JWT and the disclosures presented with it. */ export interface ChainLink { jwt: string; disclosures: string[]; } /** * Join links, each an SD-JWT serialization ending in `~`, into one dSD-JWT. * * A link's trailing `~` plus the `~` this adds is the empty component §5.1.1 requires between * links — so the separator falls out of the format rather than being invented here. */ export declare function joinChain(links: string[]): string; /** The SD-JWT serialization of one link, with its trailing `~` — what an `sd_hash` is taken over. */ export declare function linkToString(link: ChainLink): string; /** * Split a dSD-JWT into its links. `undefined` for anything that is not a chain of at least two * links: a single link is a plain SD-JWT, not a delegation, and must not be read as a chain whose * hops all "checked out" because there were none. */ export declare function splitChain(token: string): ChainLink[] | undefined; /** * The first two links of a chain, from what the intent-sign rail holds after a ceremony: the * wallet's presentation `~~` and ONE of the `delegate` * disclosures the request carried. * * The wallet's key binding IS the second link (Delegate SD-JWT §4: "the KB-JWT in the preceding * SD-JWT+KB fulfils the role of the Issuer-JWT for the next"). Its disclosures were never on * the wire — the verifier sent them in the request — so they are re-attached here, one at a * time: §5.1.4 requires exactly one delegate payload disclosed per chain. */ export declare function walletChain(presentation: string, disclosure: string): string | undefined;