import type { Address, Hex } from 'viem'; import { type IntentExpectation } from '../../agent/signing.js'; import { errorContent } from '../../agent/errors.js'; export declare function extractCalldatas(res: any): Hex[]; export declare function extractTxHash(result: any): string | undefined; export declare function executeAgentAction(calldatas: Hex[], root: Address, accountId: number, expected?: string[], options?: { atomic?: boolean; intents?: IntentExpectation[]; }): Promise; export declare function executionErrorContent(action: string, result: any): ReturnType | null; export type SimVariant = 'order' | 'close'; export declare function assertSimSucceeded(sim: any, opts: { variant: SimVariant; isMarketOrder?: boolean; }): ReturnType | null; export declare function assertPriceImpactWithinSlippage(sim: any, slippage: number, opts: { variant: SimVariant; }): ReturnType | null; /** * Sibling of extractCalldatas for the 2 of 15 calldata-builder paths that answer with * `{executeParams:[{calldata,accountId}]}` instead of `{calls:[...]}` — the AMM * add/remove-liquidity agent routes. Those also PIN the account the batch must be signed as * (255, the AMM sub-account), so the caller has to thread it into bulkSignWithAgent instead of * assuming DEFAULT_ACCOUNT_ID. Validates every entry and throws rather than sign garbage. * Kept separate from extractCalldatas so widening this shape can't affect its 8 `{calls}` callers. */ export declare function extractExecuteParams(res: any): { calldatas: Hex[]; accountId: number; }; //# sourceMappingURL=_execute.d.ts.map