import type { APIPromise, HttpClient } from "../http.js"; import type { BotchainCreateAccountInput, BotchainCreateAccountResponse, BotchainPrepareSessionApprovalInput, BotchainPrepareSessionApprovalResponse, BotchainSubmitSessionApprovalInput, BotchainSubmitSessionApprovalResponse } from "../types/index.js"; export interface BotchainRequestOptions { signal?: AbortSignal; timeoutMs?: number; } /** * Botchain Mainnet (eip155:677) smart-account lifecycle. Account creation * is paid by the Compose merchant wallet through the existing Thirdweb * account factory; already-deployed accounts return `status: "ready"`. */ export declare class BotchainResource { private readonly client; constructor(client: HttpClient); createAccount(input: BotchainCreateAccountInput, options?: BotchainRequestOptions): APIPromise; /** * Build the merchant-relayed v0.6 UserOperation for the session approval. * The facilitator owns the approval intent (asset, spender, encoding) — * only the budget amount comes from the client. The returned `userOpHash` * is signed by the admin wallet off-chain and submitted via * `submitSessionApproval`. */ prepareSessionApproval(input: BotchainPrepareSessionApprovalInput, options?: BotchainRequestOptions): APIPromise; /** * Relay the admin-signed session approval UserOperation. The merchant * wallet pays the submission transaction (topping up the account's * EntryPoint gas escrow in the same transaction when needed). */ submitSessionApproval(input: BotchainSubmitSessionApprovalInput, options?: BotchainRequestOptions): APIPromise; } //# sourceMappingURL=botchain.d.ts.map