import type { Hex } from 'viem'; import { createStartaleAccountSDK } from '../../builder/core/createStartaleAccountSDK.js'; import type { PayerInfoResponses } from '../types.js'; /** * Type for wallet_sendCalls request parameters */ type WalletSendCallsRequestParams = { version: string; chainId: number; calls: Array<{ to: Hex; data: Hex; value: Hex; }>; capabilities: Record; }; /** * Type for payment execution result */ export interface PaymentExecutionResult { transactionHash: Hex; payerInfoResponses?: PayerInfoResponses; } /** * Creates an ephemeral SDK instance configured for payments * @param chainId - The chain ID to use * @param walletUrl - Optional wallet URL to use * @param telemetry - Whether to enable telemetry (defaults to true) * @returns The configured SDK instance */ export declare function createEphemeralSDK(chainId: number, walletUrl?: string, telemetry?: boolean): { getProvider: () => import("../../../browser-entry.js").ProviderInterface; subAccount: { create(accountParam: import("../../../core/rpc/wallet_addSubAccount.js").AddSubAccountAccount): Promise; get(): Promise; addOwner: ({ address, publicKey, chainId, }: { address?: `0x${string}`; publicKey?: `0x${string}`; chainId: number; }) => Promise; setToOwnerAccount(toSubAccountOwner: import("../../../store/store.js").ToOwnerAccountFn): void; }; }; /** * Executes a payment using the SDK * @param sdk - The SDK instance * @param requestParams - The wallet_sendCalls request parameters * @returns The payment execution result with transaction hash and optional info responses */ export declare function executePayment(sdk: ReturnType, requestParams: WalletSendCallsRequestParams): Promise; /** * Manages the complete payment flow with SDK lifecycle * @param requestParams - The wallet_sendCalls request parameters * @param testnet - Whether to use testnet * @param walletUrl - Optional wallet URL to use * @param telemetry - Whether to enable telemetry (defaults to true) * @returns The payment execution result */ export declare function executePaymentWithSDK(requestParams: WalletSendCallsRequestParams, testnet: boolean, walletUrl?: string, telemetry?: boolean): Promise; export {}; //# sourceMappingURL=sdkManager.d.ts.map