import { DeepBookClient, OrderType, SelfMatchingOptions } from "@mysten/deepbook-v3"; import { type Keypair } from "@mysten/sui/cryptography"; import { SuiJsonRpcClient } from "@mysten/sui/jsonRpc"; import { Transaction } from "@mysten/sui/transactions"; import { type DeeptradeNetwork as DeepBookNetwork } from "./deepbook-config.js"; export declare const DEFAULT_BALANCE_MANAGER_KEY = "ACTIVE"; export declare const DEFAULT_MARGIN_MANAGER_KEY = "ACTIVE_MARGIN"; export interface TradingRuntimeOptions { network: string; rpcUrl?: string; privateKey?: string; address?: string; balanceManagerId?: string; tradeCap?: string; marginManagerId?: string; marginPoolKey?: string; } export interface TradingRuntime { network: DeepBookNetwork; rpcUrl: string; address: string; keypair?: Keypair; balanceManagerKey?: string; balanceManagerId?: string; marginManagerKey?: string; marginManagerId?: string; marginPoolKey?: string; suiClient: SuiJsonRpcClient; deepBookClient: DeepBookClient; } export declare function parseDeepBookNetwork(input: string): DeepBookNetwork; export declare function createTradingRuntime(options: TradingRuntimeOptions): TradingRuntime; export declare function assertCanPlaceMarketOrder(runtime: TradingRuntime, input: { poolKey: string; quantity: number; isBid: boolean; payWithDeep: boolean; }): Promise; export declare function assertCanPlaceLimitOrder(runtime: TradingRuntime, input: { poolKey: string; price: number; quantity: number; isBid: boolean; payWithDeep: boolean; expireTimestamp: number; }): Promise; export declare function executeOrDryRunTransaction(runtime: TradingRuntime, transaction: Transaction, dryRun: boolean): Promise; export declare function parseOrderSide(input: string): boolean; export declare function parseOrderType(input: string): OrderType; export declare function parseSelfMatchingOption(input: string): SelfMatchingOptions; export declare function generateClientOrderId(): string;