import { V1Transaction, type V1TransactionContext } from "../../program/transaction"; import { type PublicKey, type TransactionInstruction } from "@solana/web3.js"; import type { ClientContext } from "../../context"; import type { CloseOrderbookParams, Orderbook as ProgramOrderbook } from "../../program/types"; import { type BookAggregation } from "./aggregation"; import type { OrderbookRules } from "../../shared"; import { type OrderbookDepthResponse } from "./wire"; export declare class Orderbooks { private readonly client; private readonly rulesCache; constructor(client: ClientContext); pda(mintA: PublicKey, mintB: PublicKey): PublicKey; /** * Get live orderbook depth, optionally aggregated (Hyperliquid-style). * * `depth` is capped server-side at 20 levels per side (omitted, `0`, or * `>20` all serve 20). Invalid aggregation combinations throw client-side * before any request is made (the server would 400 with * `INVALID_ORDERBOOK_QUERY`), and unknown query params are rejected * server-side — only `depth`, `nSigFigs`, and `mantissa` are ever sent. */ get(orderbookId: string, depth?: number, aggregation?: BookAggregation): Promise; /** Fetch and cache the immutable exact admission rules for an active book. */ decimals(orderbookId: string): Promise; invalidateDecimals(orderbookId: string): void; clearDecimalsCache(): void; closeOrderbookIx(params: CloseOrderbookParams): TransactionInstruction; closeOrderbookTx(params: CloseOrderbookParams, context: V1TransactionContext): V1Transaction; getOnchain(mintA: PublicKey, mintB: PublicKey): Promise; } //# sourceMappingURL=client.d.ts.map