import { Command } from "commander"; /** * Register the per-DEX agent-wallet management subtree (`approve` / * `list` / `revoke` / `rotate` / `verify`) under the supplied parent * `wallet` command. The function previously registered `agent` as a * top-level command on `program`; the hard-cut consolidation in v0.11+ * relocates it to `wallet agent ...`. */ export declare function registerWalletAgentCommands(walletCmd: Command, isJson: () => boolean): void; /** Public abstraction modes (CLI surface) → HL on-wire string. */ declare const HL_ABSTRACTION_TO_WIRE: { readonly unified: "unifiedAccount"; readonly standard: "disabled"; readonly portfolio: "portfolioMargin"; }; export type HlAbstractionMode = keyof typeof HL_ABSTRACTION_TO_WIRE; interface HlSetAbstractionFlowOpts { masterName: string; passphrase: string; mode: HlAbstractionMode; isTestnet: boolean; } interface HlSetAbstractionFlowResult { mode: HlAbstractionMode; abstraction: string; hyperliquidChain: "Mainnet" | "Testnet"; nonce: number; userEvmAddress: `0x${string}`; response: Record; } /** * Send a Hyperliquid `userSetAbstraction` action. * * Reuses the same EIP-712 user-signed domain (`HyperliquidSignTransaction`, * chainId 42161) and `OwsEvmSigner.signTypedData` plumbing as * `runHlApproveFlow`; the only differences are the type struct * (`UserSetAbstraction` vs `ApproveAgent`) and the action payload. * * Throws `PerpError` with structured remediation on signature/network/venue * failure (Rule #2: no fallback, no silent retry). */ export declare function runHlSetAbstractionFlow(opts: HlSetAbstractionFlowOpts): Promise; export {};