import { SdkPhase } from '../types'; export interface VeroComplianceFlowState { phase: SdkPhase | 'loading' | 'error'; applicantId?: number; isCompany: boolean; workflowKey?: string; error?: Error; isLoading: boolean; /** * Transition to the workflow phase after applicant creation. * Call this from the form's onSuccess callback. */ transitionToWorkflow: (applicantId: number) => void; /** * Switch to a different applicant (e.g. after workflow duplication). * Sets the new applicantId and phase to 'workflow'. */ switchApplicant: (newApplicantId: number) => void; /** Re-fetch the SDK state from the backend */ refresh: () => Promise; } export declare function useVeroComplianceFlow(isCompanyOverride?: boolean): VeroComplianceFlowState; //# sourceMappingURL=useVeroComplianceFlow.d.ts.map