/** * Mobile "open-dApp" wallet deeplinks (the Daimo pattern). * * Each wallet exposes a universal link that opens an arbitrary https URL inside * its own in-app dApp browser. We point every one at the standalone deposit * "send" page ({@link buildDepositPageUrl}) carrying the deposit address, chain, * token and amount as query params. The user taps their wallet, the page opens * with `window.ethereum` injected, and confirms the transfer there. * * The page URL is configured by the integrator via `uiConfig.funding.depositPageUrl` * (the deployed `deposit.html`). Without it, no deeplinks are produced. */ type WalletDeeplink = { app: string; label: string; url: string; }; export type VmType = 'evm' | 'svm'; /** * Default hosted deposit "send" page (Openfort-operated). Used when the * integrator doesn't set `uiConfig.funding.depositPageUrl`, so one-tap mobile * wallet deeplinks work out of the box. */ export declare const OPENFORT_DEPOSIT_PAGE_URL = "https://deposit.openfort.io"; type DepositPageParams = { /** Source VM family. `evm` drives a window.ethereum send; `svm` a Solana Pay request. */ vm: VmType; /** Relay deposit address the source funds go to (0x for EVM, base58 for Solana). */ to: string; /** Numeric source chain id (e.g. 42161). EVM only. */ chainId?: number; /** ERC-20 contract / SPL mint, or empty/undefined for the chain's native token. */ token?: string; decimals: number; symbol: string; /** Human-readable chain name shown on the page. */ chain?: string; /** Optional preset amount in base units (uint256 string). */ amount?: string; }; /** Build the deposit "send" page URL with the transfer params encoded. */ export declare function buildDepositPageUrl(baseUrl: string, p: DepositPageParams): string; /** "eip155:8453" -> 8453 (undefined if not a numeric CAIP-2 reference). */ export declare function caipToChainId(caip2?: string): number | undefined; /** * Open-dApp deeplinks for every wallet matching `vmType`, each wrapping the * deposit send page so it loads in that wallet's in-app browser. */ export declare function buildOpenDappLinks(pageUrl: string, vmType: VmType): WalletDeeplink[]; export {};