/** * Wallet-action MCP preflight helpers. * * Wallet-action MCP servers can expose transfers, swaps, energy buys, and other * irreversible actions. Buyer agents should require simulation, spend caps, * resource caps, allowlists, and approval copy before any signature is made. */ export type WalletActionKind = 'transfer' | 'swap' | 'resource_purchase' | 'approval' | 'other'; export type WalletPreflightStatus = 'passed' | 'failed' | 'missing'; export type WalletActionPreflightProfile = { schema: 'agentpay-wallet-action-preflight/v1'; source: { name: string; repo?: string; evidenceUrl?: string; observedAt: string; }; action: { kind: WalletActionKind; chainNamespace: 'eip155' | 'tvm' | 'xrpl' | 'solana' | 'other'; chainId?: string | number; asset: string; amount: string; recipient: string; nonce?: string; irreversible: true; }; simulation: { required: true; status: WalletPreflightStatus; simulationId?: string; expectedOutcome: string; resourceEstimate: { feeAsset: string; maxNetworkFee: string; energy?: number; bandwidth?: number; computeUnits?: number; }; }; policy: { perActionSpendCap: string; dailyChainSpendCap: string; allowedRecipients: string[]; allowedAssets: string[]; resourceCaps: { maxNetworkFee: string; maxEnergy?: number; maxBandwidth?: number; maxComputeUnits?: number; }; requireHumanApproval: boolean; }; approvalCopy: { title: string; summary: string; lineItems: string[]; irreversibleWarning: string; }; }; export type WalletActionPreflightDecision = { ok: boolean; decision: 'allow' | 'deny'; failures: string[]; warnings: string[]; approvalPrompt: string; }; export declare function evaluateWalletActionPreflight(profile: WalletActionPreflightProfile): WalletActionPreflightDecision; export declare function buildTronWalletActionPreflightExample(): WalletActionPreflightProfile; //# sourceMappingURL=wallet-action-preflight-profile.d.ts.map