import { AirVerifyCredentialSuccessResponsePayload, CredentialProof, DisclosedCredentialData } from "./common/air/messaging/credential"; import { mocaDevnet, mocaTestnet, mocaMainnet } from "./common/const"; import { SupportedCurrencyCode } from "./common/currency"; import { EIP1193Provider as EIP1193ProviderInterface } from "./common/provider/types"; import { AirIdDetails } from "./common/realm/user/types"; import { TokenSymbol } from "./common/types"; export declare const BUILD_ENV: { readonly PRODUCTION: "production"; readonly UAT: "uat"; readonly STAGING: "staging"; readonly DEVELOPMENT: "development"; readonly SANDBOX: "sandbox"; }; export type BUILD_ENV_TYPE = (typeof BUILD_ENV)[keyof typeof BUILD_ENV]; export declare const IFRAME_NAME_PREFIX_SET: readonly ["air-wallet", "air-credential", "air-auth", "air-recovery"]; export type IFRAME_NAME_PREFIX = (typeof IFRAME_NAME_PREFIX_SET)[number]; export interface AirUrlConfig { authUrl: string; walletUrl: string; recoveryUrl: string; credentialUrl: string; } export type AirInitializationResult = { rehydrated: boolean; }; export type AirUserDetails = { partnerId?: string; partnerUserId?: string; airId?: AirIdDetails; user: { id: string; abstractAccountAddress?: string; email?: string; wallet?: string; isMFASetup: boolean; }; }; export type AirSessionConfig = { locale: string; currency: SupportedCurrencyCode; }; export type AbstractAccountAddressEntry = { readonly address: string; readonly chainIds: readonly string[]; }; export type CredentialNetwork = "testnet" | "mainnet"; export type AirLoginResult = { isLoggedIn: boolean; id: string; abstractAccountAddress?: string; abstractAccountAddresses?: readonly AbstractAccountAddressEntry[]; token: string; isMFASetup: boolean; }; export type AirWalletInitializedResult = { abstractAccountAddress: string | null; isMFASetup: boolean; }; export type ClaimAirIdResult = { airId: AirIdDetails; }; export type AgentPublicKey = { id: string; publicKey: string; createdAt: string; }; export type AirEventOnInitialized = { event: "initialized"; result: AirInitializationResult; }; export type AirEventOnLoggedIn = { event: "logged_in"; result: AirLoginResult; }; export type AirEventOnLoggedOut = { event: "logged_out"; }; export type AirEventOnWalletInitialized = { event: "wallet_initialized"; result: AirWalletInitializedResult; }; export type CredentialVerificationResult = AirVerifyCredentialSuccessResponsePayload["verificationResult"]; /** * Re-export DisclosedCredentialData and CredentialProof for SDK consumers * These types represent the decrypted credential data returned during full or selective disclosure verification */ export type { DisclosedCredentialData, CredentialProof }; export type AirEventData = AirEventOnInitialized | AirEventOnLoggedIn | AirEventOnWalletInitialized | AirEventOnLoggedOut; export type AirEventListener = (data: AirEventData) => void; export type ClaimAirIdOptions = { token?: string; background?: false; offchain?: boolean; } | { token: string; background: true; offchain?: boolean; }; export type ShowSwapUIOptions = { initialFromToken?: TokenSymbol; fallbackFromToken?: TokenSymbol; initialToToken?: TokenSymbol; defaultSlippage?: number; }; export type ShowTransferUIOptions = { tokenSymbol?: string; chainId?: number; recipientAddress?: string; amount?: string; }; export type ShowTransferUIResult = { txHash: `0x${string}`; symbol: string; chainId: number; decimals: number; address: `0x${string}`; recipientAddress: string; amount: string; }; export type EIP1193Provider = EIP1193ProviderInterface; export { mocaDevnet, mocaTestnet, mocaMainnet };