import { AirAuthStartRecoveryRequestPayload } from "./common/air/messaging/auth"; import { Token } from "./common/types"; import { AgentPublicKey, AirEventListener, AirLoginResult, AirSessionConfig, AirUserDetails, BUILD_ENV, BUILD_ENV_TYPE, ClaimAirIdOptions, ClaimAirIdResult, CredentialNetwork, CredentialVerificationResult, EIP1193Provider, ShowSwapUIOptions, ShowTransferUIOptions, ShowTransferUIResult } from "./interfaces"; declare class AirService { #private; constructor({ partnerId }: { partnerId: string; }); get buildEnv(): BUILD_ENV_TYPE; get isInitialized(): boolean; get isLoggedIn(): boolean; get loginResult(): AirLoginResult; get isWalletInitialized(): boolean; get provider(): EIP1193Provider; private shouldEnableAutomation; init(config: ({ buildEnv?: Exclude; credentialNetwork?: never; } | { buildEnv?: typeof BUILD_ENV.PRODUCTION; credentialNetwork?: Extract; }) & { enableLogging?: boolean; skipRehydration?: boolean; preloadWallet?: boolean; preloadCredential?: boolean; sessionConfig?: Partial; }): Promise; login(options?: { authToken?: string; }): Promise; /** * @experimental This method is experimental and will change in the future. */ deploySmartAccount(): Promise<{ txHash: string; }>; /** * @experimental This method is experimental and will change in the future. */ isSmartAccountDeployed(): Promise; getProvider(): EIP1193Provider; preloadWallet(): Promise; setupOrUpdateMfa(): Promise; /** * @experimental This feature has not been officially released and might change in the future. */ claimAirId(options?: ClaimAirIdOptions): Promise; /** * @experimental This feature has not been officially released and might change in the future. */ showSwapUI(options?: ShowSwapUIOptions): Promise<{ txHash: `0x${string}`; from: Token & { amount: string; }; to: Token & { amount: string; }; }>; /** * @experimental This feature has not been officially released and might change in the future. */ showOnRampUI(options: { displayCurrencyCode: string; targetCurrencyCode?: string; }): Promise; /** * @experimental This feature has not been officially released and might change in the future. */ showTransferUI(options?: ShowTransferUIOptions): Promise; /** * @experimental This feature has not been officially released and might change in the future. */ showReceiveUI(): Promise; getAgentKeys(): Promise; registerAgentKey(publicKey: string): Promise; removeAgentKey(id: string): Promise; getUserInfo(): Promise; updateSessionConfig(config: Partial): Promise; goToPartner(partnerUrl: string): Promise<{ urlWithToken: string; }>; startRecovery(payload?: AirAuthStartRecoveryRequestPayload): Promise; getAccessToken(): Promise<{ token: string; }>; logout(): Promise; cleanUp(): Promise; on(listener: AirEventListener): void; off(listener: AirEventListener): void; preloadCredential(): Promise; issueCredential({ authToken, issuerDid, credentialId, credentialSubject, curve, waitForOnchainCompletion, }: { authToken: string; issuerDid: string; credentialId: string; credentialSubject: Record; curve?: "secp256r1" | "secp256k1"; waitForOnchainCompletion?: boolean; }): Promise<{ cakPublicKey?: string; }>; verifyCredential({ authToken, programId, redirectUrl, fieldsToDisclose, offchain, }: { authToken: string; programId: string; redirectUrl?: string; fieldsToDisclose?: "*" | string[]; offchain?: boolean; }): Promise; } export default AirService;