import { HttpClient } from '../client/http-client'; import { ApplicantService, QuestionnaireService, UploadDocumentService, AppropriatenessTestService, OverviewService, RiskScoringService, IdentityService, BaseInformationService, InvestorCategorizationService, AdditionalDataService, ThemeService } from '../services'; import { WorkflowOrchestrator } from '../state'; import { SardineDeviceSession } from '../identity/sardine-device-session'; import { VeroComplianceClientConfig } from '../client/config'; import { ThemeManager } from '../theme/theme-manager'; import { ThemeConfig, ThemeEngine } from '../types/theme'; /** * VeroCompliance context value */ export interface VeroComplianceContextValue { config: VeroComplianceClientConfig; httpClient: HttpClient; applicantService: ApplicantService; questionnaireService: QuestionnaireService; uploadDocumentService: UploadDocumentService; appropriatenessTestService: AppropriatenessTestService; overviewService: OverviewService; riskScoringService: RiskScoringService; identityService: IdentityService; baseInformationService: BaseInformationService; investorCategorizationService: InvestorCategorizationService; additionalDataService: AdditionalDataService; themeService: ThemeService; themeManager: ThemeManager; currentTheme: ThemeConfig | null; /** Active component/rendering engine, derived from the resolved theme. Defaults to `verocompliance`. */ themeEngine: ThemeEngine; createOrchestrator: () => WorkflowOrchestrator; locale: string; setLocale: (locale: string) => void; /** * Locale to use for backend workflow data refetches (questionnaire, risk * scoring, appropriateness test, overview, upload-document, identity * countries, …). This value **lags** `locale` whenever an applicant id is * registered: it is only advanced after the provider has finished pushing * the new language to the backend via `Applicant/SetApplicantLng`, so any * downstream API call observes the new language consistently. * * Step components MUST use this (not `locale`) as the dep for their refetch * effects, otherwise their requests race the language-persist call. */ workflowLocale: string; /** * Currently-active applicant id (registered by the wizard / forms / identity * step). Used by the provider to persist the user's language choice to the * backend via `Applicant/SetApplicantLng` whenever the picker changes. */ currentApplicantId: number | null; setCurrentApplicantId: (id: number | null) => void; /** * Sardine's device script for the whole session, started from the SDK state on a run that can reach Sardine. * One per provider. Absent in a hand-built context. */ sardineDevice?: SardineDeviceSession; } /** * VeroCompliance context */ export declare const VeroComplianceContext: import('react').Context; //# sourceMappingURL=VeroComplianceContext.d.ts.map