import { OpenId4VpAcceptAuthorizationRequestOptions, OpenId4VpResolvedAuthorizationRequest, ResolveOpenId4VpAuthorizationRequestOptions } from "./OpenId4vpHolderServiceOptions.mjs"; import { AgentContext, DcqlService, DifPresentationExchangeService, DifPresentationExchangeSubmission } from "@credo-ts/core"; //#region src/openid4vc-holder/OpenId4vpHolderService.d.ts declare class OpenId4VpHolderService { private presentationExchangeService; private dcqlService; constructor(presentationExchangeService: DifPresentationExchangeService, dcqlService: DcqlService); private getOpenid4vpClient; private handlePresentationExchangeRequest; private handleDcqlRequest; resolveAuthorizationRequest(agentContext: AgentContext, /** * Can be: * - JWT * - URI containing request or request_uri param * - Request payload */ authorizationRequest: string | Record, options?: ResolveOpenId4VpAuthorizationRequestOptions): Promise; private extendCredentialsWithTransactionDataHashes; acceptAuthorizationRequest(agentContext: AgentContext, options: OpenId4VpAcceptAuthorizationRequestOptions): Promise<{ readonly ok: true; readonly authorizationResponse: ({ [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }) | { response: string; }; readonly authorizationResponsePayload: { [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }; readonly serverResponse?: undefined; readonly redirectUri?: undefined; readonly presentationDuringIssuanceSession?: undefined; } | { readonly ok: false; readonly serverResponse: { readonly status: number; readonly body: string | Record | null; }; readonly authorizationResponse: ({ [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }) | { response: string; }; readonly authorizationResponsePayload: { [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }; readonly redirectUri?: undefined; readonly presentationDuringIssuanceSession?: undefined; } | { readonly ok: true; readonly serverResponse: { readonly status: number; readonly body: Record; }; readonly authorizationResponse: ({ [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }) | { response: string; }; readonly authorizationResponsePayload: { [x: string]: unknown; vp_token: string | Record | [string | Record, ...(string | Record)[]] | Record | [string | Record, ...(string | Record)[]]>; state?: string | undefined; id_token?: string | undefined; presentation_submission?: any; refresh_token?: string | undefined; token_type?: string | undefined; access_token?: string | undefined; expires_in?: number | undefined; } & { presentation_submission?: DifPresentationExchangeSubmission; }; readonly redirectUri: string | undefined; readonly presentationDuringIssuanceSession: string | undefined; }>; } //#endregion export { OpenId4VpHolderService }; //# sourceMappingURL=OpenId4vpHolderService.d.mts.map