import type { Address } from 'viem'; import { type CheckoutQuoteResponse } from '@funkit/utils'; import { type BaseApiRequest } from '../../consts'; import { type CheckoutDeactivateParams, type CheckoutHistoryItem, type CheckoutInitParams, type CheckoutInitResponse, type CheckoutInitTokenTransferAddressParams, type CheckoutInitTokenTransferResponse, type CheckoutQuoteRequestV2, type LightningQuoteRequest, type LightningQuoteResponse, type RiskAssessmentParams, type RiskAssessmentResponse, type RoutedQuoteResponse } from './types'; type CheckoutQuoteV2Params = BaseApiRequest & CheckoutQuoteRequestV2; /** * Gets a checkout quote (estimation). Opting in with `routing: true` returns * the provider-aware {@link RoutedQuoteResponse}; otherwise the legacy Relay-shaped quote. */ export declare function getCheckoutQuoteV2(params: CheckoutQuoteV2Params & { routing: true; }): Promise; export declare function getCheckoutQuoteV2(params: CheckoutQuoteV2Params & { routing?: false; }): Promise; export declare function getCheckoutQuoteV2(params: CheckoutQuoteV2Params): Promise; /** * Gets a Lightning Network checkout quote. The backend dispatches to the * Flashnet rail off `fromChainId === LIGHTNING_MAINNET_CHAIN_ID`, so this only * renames the sats amount and pins the response shape. * * Forces `routing` off until the backend reads the flag — after the spread, so a * caller cannot opt this rail into a routed response it is not typed for. The * rail is chosen by `fromChainId`, so this costs nothing today. */ export declare function getLightningQuote({ fromAmountSats, ...params }: BaseApiRequest & LightningQuoteRequest): Promise; /** * Initializes a checkout * @deprecated `POST /checkout` sunsets on 2026-12-21. Use `createDirectExecution` * (relay execution) or `initializeCheckoutTokenTransferAddress` (deposit address) instead. * @param userOp The checkout UserOp, signed. * @param quoteId The quoteId specific to the checkout. * @param apiKey A valid fun api key. * @return {Address} The generated deposit address */ export declare function initializeCheckout({ userOp, quoteId, sourceOfFund, clientMetadata, checkoutId, ...options }: CheckoutInitParams): Promise; export declare function deactivateCheckout({ depositAddress, ...options }: CheckoutDeactivateParams): Promise; /** * Gets a checkout given a depositAddress * @param depositAddress A unique deposit address associated with a backend checkout item. * @param apiKey A valid fun api key. * @param signal AbortSignal to cancel the request when no longer needed * @returns The checkout object if exists. Otherwise, null. */ export declare function getCheckoutByDepositAddress({ depositAddress, ...options }: BaseApiRequest & { depositAddress: Address; }): Promise; /** * Gets all checkouts associated with a recipient address * @param recipientAddress A wallet address. * @param apiKey A valid fun api key. * @param signal AbortSignal to cancel the request when no longer needed * @returns A list of checkout objects if exists. Otherwise, an empty array. */ export declare function getCheckoutsByRecipientAddress({ recipientAddress, ...options }: BaseApiRequest & { recipientAddress: Address; }): Promise; export interface GetCheckoutsByUserIdParams extends BaseApiRequest { userId: string; limit?: number; } /** * Gets all checkouts associated with a funkit userId string * @param userId A userId string. * @param apiKey A valid fun api key. * @param signal AbortSignal to cancel the request when no longer needed * @returns A list of checkout objects if exists. Otherwise, an empty array. */ export declare function getCheckoutsByUserId({ userId, limit, ...options }: GetCheckoutsByUserIdParams): Promise; export declare function getRiskAssessmentForAddress({ address, chainId, ...options }: RiskAssessmentParams): Promise; export declare function initializeCheckoutTokenTransferAddress({ apiKey, logger, signal, ...body }: CheckoutInitTokenTransferAddressParams): Promise; export {}; //# sourceMappingURL=endpoints.d.ts.map