import type { StripeIdentifierRequirements } from '../../../hooks/openfort/stripeCryptoOnramp.js'; /** Human label for an identifier type; falls back to the raw type. */ export declare const identifierLabel: (type: string) => string; /** The CARF tax-number type for a country, or null where CARF doesn't apply. */ export declare const carfIdentifierForCountry: (country: string) => string | null; /** * The identifier types still outstanding: everything Stripe listed, plus the * buyer country's tax number when CARF demands one (that flag names no type). * Where Stripe offers alternatives it accepts any member of the group, so we * ask for one — the group's originals drop out to avoid asking twice. */ export declare function pendingIdentifierTypes(requirements: StripeIdentifierRequirements, country: string): string[]; /** * CARF also wants a self-declaration, which Stripe renders as its own element. * `providedFields` is authoritative once we have it — a buyer who already * declared must not be asked twice. Without it (identity lookup unavailable), * fall back to the CARF flag, which over-asks rather than under-asks. */ export declare const attestationRequired: (requirements: StripeIdentifierRequirements, providedFields?: string[]) => boolean; /** * Documents raise L1 to L2, so they are only asked of a buyer who has already * cleared the identity form. Prompting earlier would demand a passport from * someone who hasn't given their name yet. No identity lookup means no prompt — * the commit still surfaces the requirement if it turns out to matter. */ export declare const documentsRequired: (level: string | undefined, providedFields: string[] | undefined) => boolean; /** * What to do about a buyer whose purchase is over their tier limit: either the * screen that raises it, or the reason nothing here can. */ export type StepUp = { step: 'kyc' | 'documents'; } | { blocked: string; }; /** * Which screen raises this buyer's limit, given the tier they are on. * * The tiers are cumulative: L0 is the starting point and collects NOTHING — * a first purchase inside the L0 limit needs no identity at all. Exceeding it * asks for the identity form (L0 → L1); exceeding L1 asks for documents * (L1 → L2); L2 is the ceiling. * * A review already in flight or refused is NOT a form problem — re-showing the * identity step there asks the buyer to redo work that is sitting with the * provider, so those say why instead. */ export declare const stepUpFor: (level: string | undefined) => StepUp;