import { Address, Hex } from 'viem'; import { Agent } from '../../entities'; import { Account, MarketAcc, MarketId, PendleSignTxStruct, RequestCashSwapMessage, Side, TimeInForce, functionEncoder } from '../../types'; export type AgentExecution = keyof typeof functionEncoder; export type SignedAgentExecution = { agent: Address; message: PendleSignTxStruct; signature: Hex; calldata: Hex; }; export declare function bulkSignWithAgentV2(params: { root: Address; executeParams: { accountId: number; calldata: Hex; }[]; agent?: Agent; nonces?: bigint[]; }): Promise<{ agent: `0x${string}`; message: PendleSignTxStruct; signature: `0x${string}`; calldata: `0x${string}`; }[]>; export declare function bulkSignWithAgent(params: { root: Address; accountId: number; calldatas: Hex[]; agent?: Agent; nonces?: bigint[]; }): Promise<{ agent: `0x${string}`; message: PendleSignTxStruct; signature: `0x${string}`; calldata: `0x${string}`; }[]>; export declare function signWithAgent(params: { root: Address; accountId: number; calldata: Hex; agent?: Agent; nonce?: bigint; }): Promise; export declare function signUpdateSettings(params: { marketAcc: MarketAcc; marketId: number; leverage: number; }): Promise<{ marketAcc: `0x${string}`; marketId: number; leverage: number; signature: `0x${string}`; agent: `0x${string}`; timestamp: number; }>; export declare function signStopOrderRequest(params: { req: { account: Account; cross: boolean; marketId: MarketId; side: Side; tif: TimeInForce; size: bigint; tick: number; reduceOnly: boolean; salt: string; expiry: string; }; offchainCondition: Hex; }): Promise<{ agent: `0x${string}`; signature: `0x${string}`; orderHash: `0x${string}`; }>; export declare function signCancelStopOrderRequest(params: { orderId: Hex; }): Promise<{ agent: `0x${string}`; signature: `0x${string}`; orderId: `0x${string}`; }>; export declare function signCancelStopOrderV2Request(params: { orderIds: Hex[]; }): Promise<{ agent: `0x${string}`; signature: `0x${string}`; orderIds: `0x${string}`[]; }>; export declare function getAgentSignature(): Promise<{ agent: `0x${string}`; signature: `0x${string}`; timestamp: number; }>; export declare function signRequestCashSwapMessage(params: { message: RequestCashSwapMessage; agent?: Agent; }): Promise<{ signature: `0x${string}`; message: { nonce: bigint; account: Account; fromTokenId: number; fromMarketId: number; toTokenId: number; toMarketId: number; unscaledSpent: bigint; minUnscaledReceived: bigint; }; }>;