import { type PublicKey } from "@solana/web3.js"; import type { ClientContext } from "../../context"; import type { Market as ProgramMarket } from "../../program/types"; import { type GlobalDepositAsset, type Market } from "./index"; import type { DepositMintsResponse, MarketSearchResult } from "./wire"; export interface MarketsResult { markets: Market[]; validationErrors: string[]; } /** * Result of fetching the global deposit asset whitelist. Assets that fail * validation are skipped with their errors reported separately. */ export interface GlobalDepositAssetsResult { assets: GlobalDepositAsset[]; validationErrors: string[]; } export declare class Markets { private readonly client; constructor(client: ClientContext); pda(marketId: bigint): PublicKey; deriveConditionId(oracle: PublicKey, questionId: Buffer, numOutcomes: number): Buffer; getConditionalMints(market: PublicKey, depositMint: PublicKey, numOutcomes: number): PublicKey[]; get(cursor?: number, limit?: number): Promise; getBySlug(slug: string): Promise; getByPubkey(pubkey: string): Promise; search(query: string, limit?: number): Promise; featured(): Promise; /** * Fetch deposit assets registered for a specific market, including each * asset's conditional mints. */ depositAssets(marketPubkey: string): Promise; /** * Fetch the active global deposit asset whitelist (platform-scoped, not * market-bound). * * Assets that fail validation are skipped and their errors are returned in * `GlobalDepositAssetsResult.validationErrors`. */ globalDepositAssets(): Promise; getOnchain(market: PublicKey): Promise; getByIdOnchain(marketId: bigint): Promise; nextId(): Promise; } //# sourceMappingURL=client.d.ts.map