import type { BaseApiRequest } from '../../consts'; import type { FiatClientCapability, FiatEndpointParts, SendFiatTransitionParams } from './types'; export declare function isFiatAuthenticationError(error: unknown): boolean; /** The backend's per-login rate limit (429) on a fiat route: a 429 that names a wait over 1 s. */ export declare function isFiatRateLimitError(error: unknown): boolean; /** Seconds until a fiat rate limit's window resets; undefined for any other error. */ export declare function getFiatRetryAfterSeconds(error: unknown): number | undefined; /** Parses and validates a backend-supplied fiat endpoint. */ export declare function parseFiatEndpoint(endpoint: string): FiatEndpointParts; type SendFiatTransitionArgs = BaseApiRequest & { params: SendFiatTransitionParams; /** Returns the host-signed identity assertion sent as the bearer credential. */ getIdentityAssertion?: () => Promise; /** Transport attempts, for a caller that retries on its own; defaults to the shared policy's. */ maxAttempts?: number; /** Gives up on a rate limit at once; true only for transitions, which the per-login limit counts. */ abortOn429?: boolean; /** Hears each failed transport attempt, the last included, in order; its throws are ignored. */ onAttemptFailed?: (error: Error) => void; /** The client flow's checkout id, so server logs join the client's. */ checkoutId?: string; /** What this client can do beyond the contract; the server uses a feature only when the client declares it. */ clientCapabilities?: readonly FiatClientCapability[]; /** * Rejects after this long, aborting the request. Covers the identity assertion and every * retry, so a hung minter or server shows as a failure the user can retry. */ timeoutMs?: number; }; /** Sends a transition endpoint supplied by the fiat backend. */ export declare function sendFiatTransition({ timeoutMs, ...args }: SendFiatTransitionArgs): Promise; export {}; //# sourceMappingURL=endpoints.d.ts.map