import type { CountryCode } from '../../types/datasets/country-code.d.ts'; import type { QueryOptions } from '../types'; import type { CompanyDatasetFinancialInformation } from './companyDataset.types'; export interface ChargeCardPrefillRequest { name: string; country: CountryCode; registrationNumber: string; } export type QueryKeyChargeCardFinancialPrefill = [ 'chargeCardFinancialPrefill', ChargeCardPrefillRequest | undefined ]; /** * Bounds how long the Business Financing task waits on the prefill lookup before falling * back to the regular, empty form. The requests themselves are not aborted: a result that * lands after the deadline is ignored instead of overwriting the form. */ export declare const CHARGE_CARD_PREFILL_DEADLINE_MS = 10000; /** * LXP-8329: resolves the provider financials used to prefill the empty charge card fields * (annual revenue, total debt, cash position) in the Business Financing task. * * The lookup runs a regular company search, requires a single result whose registration * number matches the legal entity's, then retrieves that result's dataset through the * read-only `companyDataset/retrieve` endpoint. Any step failing to produce an unambiguous * match resolves to `undefined`, and the caller falls back to the empty form. * * Pass `undefined` as `data` to keep the lookup disabled. */ export declare const useChargeCardFinancialPrefill: (data: ChargeCardPrefillRequest | undefined, options?: Omit, "enabled">) => { financialInformation: { annualTurnover?: number; balanceSheetTotal?: number; cashPosition?: number; currency?: string; financialReportingDate?: string; netAssets?: number; numberOfEmployees?: number; totalDebt?: number; yearlyRevenue?: number; } | undefined; isPending: boolean; };