import { BaseResource } from './BaseResource.js'; import type { RequestOptions } from '../types/common.js'; import type { ThreedsCreateSessionParams, ThreedsSession } from '../types/threeds.js'; /** * 3D Secure resource (`tagada.threeds.*`). * * Wraps `POST /api/public/v1/threeds/create-session`. Used in the * partner S2S flow to run a 3DS challenge between tokenization and * charge — when the issuer requires SCA. * * @example * // After creating a payment instrument from a tagadaToken: * const session = await tagada.threeds.createSession({ * provider: 'basis_theory', * storeId: 'store_xxx', * paymentInstrumentId: paymentInstrument.id, * sessionData: { ...browserFingerprint, ...transactionDetails }, * }); * * if (session.status === 'challenge_required') { * // Embed session.challengeUrl in an iframe and resume on callback. * } else if (session.status === 'frictionless') { * // No challenge needed; pass session.id into payments.process() * } */ export declare class Threeds extends BaseResource { createSession(params: ThreedsCreateSessionParams, opts?: RequestOptions): Promise; retrieveSession(sessionId: string, opts?: RequestOptions): Promise; } //# sourceMappingURL=Threeds.d.ts.map