import { verifySDJWTCredential } from '@docknetwork/crypto-utils'; export { verifySDJWTCredential }; export interface DecodedSDJWT { jwt: { header: Record; payload: Record; }; disclosures: Array<{ key?: string; value?: unknown; [key: string]: unknown; }>; [key: string]: unknown; } /** * Checks if a value is a decoded SD-JWT payload object — i.e. an SD-JWT VC * payload returned as JSON rather than the compact `header.payload.sig~...` form. */ export declare function isDecodedSDJWTPayload(value: any): boolean; /** * Checks if a credential is an SD-JWT credential. * Accepts either the compact SD-JWT string or a decoded SD-JWT VC payload object. */ export declare function isSDJWTCredential(credential: any): boolean; export declare function createSDJWTPresentation({ attributesToReveal, credential, }: { attributesToReveal: string[]; credential: string; }): Promise; /** * Decodes an SD-JWT string into its structured format * @param {string} sdJwtString - The SD-JWT string to decode * @returns {Promise} Decoded SD-JWT structure with jwt and disclosures */ export declare function decodeSDJWT(sdJwtString: any): Promise; /** * Verifies an SD-JWT credential * @param {string|{jwt: string}} jwt - The SD-JWT string (or `{jwt}`) to verify * @param {string[]} [requiredAttribs] - Required disclosed claim keys * @param {object} [options] * @param {function} [options.keyResolver] async (issOrKid) => verification key * @param {function} [options.documentLoader] (uri) => Promise<{document}> * @param {{supports: function, resolve: function}} [options.resolver] * @param {string[]} [options.algorithms] * @returns {Promise} Verification result */ export declare function verifySDJWT(jwt: any, requiredAttribs?: any, options?: {}): Promise<{ verified: true; errors: []; results: []; credentialResults: object[]; } | { verified: boolean; error: any; }>; /** * Converts a decoded SD-JWT into W3C Verifiable Credential format * @param {Object} decodedSDJWT - The decoded SD-JWT object from SDJwtVcInstance.decode() * @param {string} [encodedSDJWT] - Optional raw encoded SD-JWT string * @returns {Object} W3C Verifiable Credential format with SD-JWT metadata */ export declare function sdJwtToW3C(decodedSDJWT: any, encodedSDJWT?: any): any; /** * Decodes an SD-JWT string and converts it to W3C credential format * @param {string} sdJwtString - The SD-JWT string * @returns {Promise} W3C Verifiable Credential format with SD-JWT metadata */ export declare function decodeSDJWTToW3C(sdJwtString: any): Promise; /** * Converts a credential to W3C format * Handles both SD-JWT credentials (needs decoding) and regular W3C credentials (returns as-is) * @param {string|Object} credential - Either an SD-JWT string or a credential object * @returns {Promise} W3C Verifiable Credential format */ export declare function credentialToW3C(credential: any): Promise; //# sourceMappingURL=sd-jwt.d.ts.map