export declare class PolymarketError extends Error { constructor(message: string, options?: ErrorOptions); } export declare class PolymarketHttpError extends PolymarketError { readonly operation: string; readonly status: number; readonly statusText: string; constructor(operation: string, status: number, statusText: string); } export declare class PolymarketValidationError extends PolymarketError { constructor(message: string); } export declare class TickSizeError extends PolymarketValidationError { constructor(message: string); } export declare class DepositWalletNotDeployedError extends PolymarketError { readonly depositWalletAddress: string; constructor(depositWalletAddress: string); } export declare class BalanceSyncRequiredError extends PolymarketError { constructor(message?: string); } /** * Thrown when the MetaMask Predict relayer proxy (or the underlying Polymarket * builder relayer it forwards to) rejects a request. Carries the HTTP status * and the relayer-supplied message so callers can build UX without string * parsing the underlying error. */ export declare class RelayerError extends PolymarketError { readonly httpStatus?: number; readonly relayerMessage?: string; constructor(message: string, options?: { httpStatus?: number; relayerMessage?: string; cause?: unknown; }); } /** * Thrown when the deposit wallet does not hold enough pUSD to place a BUY * order at the moment of submission. Carries both the deposit-wallet * balance (what the order checks against) and the owner-EOA balance (the * fundable reserve), plus the required amount in pUSD base units, so the * CLI can render either "fund the deposit wallet and retry" or "top up * your EOA first" without re-fetching. * * "Sufficient" means the deposit-wallet balance covers `required`; the * order can be placed without a funding tx. If the deposit wallet alone is * short but the owner EOA plus deposit wallet together cover `required`, * the caller can wrap+transfer from EOA to deposit wallet and retry; * otherwise the user needs to top up the EOA first. */ export declare class InsufficientPusdError extends PolymarketError { readonly ownerEOA: string; readonly depositWalletAddress: string; readonly ownerBalance: bigint; readonly depositWalletBalance: bigint; readonly required: bigint; constructor(args: { ownerEOA: string; depositWalletAddress: string; ownerBalance: bigint; depositWalletBalance: bigint; required: bigint; }); } /** * Thrown when the deposit wallet does not hold enough conditional-token * (CTF ERC-1155) balance to place a SELL order on `tokenId`. Owner EOA is * irrelevant here — CTF outcome shares only ever live on the deposit * wallet that bought them, so there is no fundable fallback. */ export declare class InsufficientCtfBalanceError extends PolymarketError { readonly depositWalletAddress: string; readonly tokenId: string; readonly balance: bigint; readonly required: bigint; constructor(args: { depositWalletAddress: string; tokenId: string; balance: bigint; required: bigint; }); }