import { AUTH_CONNECTION_TYPE, CUSTOM_AUTH_CONNECTION_TYPE } from "@web3auth/auth"; import { OnrampWindowType } from "./utils"; /** * Open the Halliday onramp flow in a popup window * * @param {string} apiKey Your Halliday API key, e.g. 2743c3a8-5ad7-4215-a3ea-bf84b710a849 * @param {string} verifierClientId Your verifier client ID, provided to you by the Halliday team * @param {string} destinationCryptoType The type of crypto to onramp, e.g. ETH, BTC * @param {string} destinationBlockchainType The blockchain to onramp to, e.g. ethereum, bitcoin * @param {string} inGamePlayerId Optional - if not provided, the user's non-custodial wallet address will be used. Required if using no-login flow * @param {boolean} useSandbox Optional - if not provided, defaults to false * @param {string} loggedInEmail The email the user should log in with * @param {AUTH_CONNECTION_TYPE | CUSTOM_AUTH_CONNECTION_TYPE} typeOfLogin The type of login to use, e.g. google, twitter, jwt * @param {string} destinationAddress The user's smart account address, where the onramped crypto should be sent. If using no login * and passing in the sessionKeySignerCallback, this must be the address that the session key will be signed by. * @param {Function} sessionKeySignerCallback Optional, Required for no login, a callback function that signs with the user's signer * @param {Function} onrampStatusCallback Optional, a callback function to receive onramp status updates. The callback will receive an object with 2 fields: * 'updateType' - a string representing the onramp update type, and 'onramp' - the object which contains the information about the onramp * @param {string} windowType Optional and default to popup, value needs to be "POPUP" or "EMBED" * @param {string} targetElementId Optional, the id of the element to embed the onramp in */ export declare function openHallidayOnramp(params: { apiKey: string; verifierClientId: string; destinationCryptoType: string; destinationBlockchainType: string; inGamePlayerId?: string; useSandbox?: boolean; loggedInEmail?: string; typeOfLogin?: AUTH_CONNECTION_TYPE | CUSTOM_AUTH_CONNECTION_TYPE; destinationAddress?: string; sessionKeySignerCallback?: (sessionKeyBytesHex: Uint8Array) => Promise; onrampStatusCallback?: ({ updateType, onramp }: { updateType: string; onramp: any; }) => void; windowType?: OnrampWindowType; targetElementId?: string; }): void; export declare function openHallidayOnrampToEOA({ apiKey, destinationBlockchainType, destinationCryptoType, useSandbox, }: { apiKey: string; destinationBlockchainType: string; destinationCryptoType: string; useSandbox: boolean; }): void;