import { ReactNode } from 'react'; import { Region } from '../../services/api'; import { Locale } from '../../types/Locale'; import { SafeProxyHeaders } from '../../types/props'; import { ClientCuringSubmission } from '../TaxbitCuringDocumentation/buildCuringRequestData'; export type TaxbitCuringDocumentationPersistProps = Record> = { bearerToken: string; staging?: boolean; region?: Region; proxyDomain?: string; proxyHeaders?: SafeProxyHeaders; language?: Locale; poweredByTaxbit?: boolean; /** * When true, skips the previous-W-Form submission fetch (via * `prepopulateWithSavedData: false`) and prompts the user to type their * signature name on the review screen instead. Use this when the host * has no previously-submitted W-Form to hydrate the signature from, or * when it prefers to collect the name at curing time. Default `false` — * signature name flows in from `serverData.accountHolder.name`. */ collectSignatureName?: boolean; loadingComponent?: ReactNode; onSuccess?: (submission: ClientCuringSubmission) => void; onError?: (error: Error) => void; onSettled?: (submission: ClientCuringSubmission) => void; }; /** * Server-fetch layer for the curing widget. Mirrors * `TaxbitQuestionnairePersist`'s role: pulls `useTaxbitStatus`, derives * `CuringData` (issues / doc type / signature name), wires the * widget-internal `useTaxbitCuring` submit hook, and hands both to * `TaxbitCuringDocumentationUI`. * * Internal fail-safe: when no OPEN curable issue exists, returns `null` and * (dev-only) warns the integrator to gate the mount on * `useTaxbit().needsCuringDocumentation`. Loading and no-issues are * distinct states; loading shows `loadingComponent` (or null) instead. */ export declare const TaxbitCuringDocumentationPersist: >({ bearerToken, staging, region, proxyDomain, proxyHeaders, language, poweredByTaxbit, collectSignatureName, loadingComponent, onSuccess, onError, onSettled, }: TaxbitCuringDocumentationPersistProps) => import("react/jsx-runtime").JSX.Element | null;