import { IdentityVerificationProvider } from '../types'; import { SumsubProvider } from './providers/sumsub'; import { OnfidoProvider } from './providers/onfido'; import { SardinAIProvider } from './providers/sardin-ai'; /** * Identity provider manager * Factory for creating and managing identity verification providers */ export declare class IdentityProviderManager { /** * Create a provider instance */ static createProvider(provider: IdentityVerificationProvider, config: any): SumsubProvider | OnfidoProvider | SardinAIProvider; /** * Normalise a locale to the language code an identity provider expects. * * Sumsub takes a bare language (`de`), not a locale, and the applicant's language can carry a region: * the SDK create form sends `locale.toUpperCase()` and `SetApplicantLng` sends the raw locale, so * `DE`, `de-AT` and `de_DE` all reach us for the same language. Passing any of those through unchanged * gets the widget rendered in English with no error anywhere. */ static normalizeProviderLang(value?: string | null): string | undefined; /** * Get provider configuration from API token object. * * `applicantLang` is the language the APPLICANT is running the workflow in (the value persisted by * `SetApplicantLng`). It leads deliberately: a host-configured `lang` is one static value for every * applicant, so honouring it first would render Sumsub in the tenant's language rather than the * user's, which is the whole point of asking. */ static parseProviderConfig(provider: IdentityVerificationProvider, tokenObject: Record, contextConfig?: any, applicantLang?: string): any; } //# sourceMappingURL=provider-manager.d.ts.map