import type { ClientOptions, IndexedOutput, TxoQueryOptions } from "../types"; import { BaseClient } from "./BaseClient"; /** * Client for /1sat/txo/* routes. * Provides TXO (transaction output) lookup and search. * * Routes: * - GET /:outpoint - Get single TXO (outpoint pattern-matched) * - GET /:outpoint/spend - Get spend info * - POST /outpoints - Get multiple TXOs * - POST /spends - Get multiple spends * - GET /tx/:txid - Get all TXOs for a transaction * - GET /search?key=... - Search by key(s) */ export declare class TxoClient extends BaseClient { constructor(baseUrl: string, options?: ClientOptions); /** * Get a single TXO by outpoint */ get(outpoint: string, opts?: TxoQueryOptions): Promise; /** * Get multiple TXOs by outpoints */ getBatch(outpoints: string[], opts?: TxoQueryOptions): Promise<(IndexedOutput | null)[]>; /** * Get spend info for an outpoint */ getSpend(outpoint: string): Promise; /** * Get spend info for multiple outpoints */ getSpends(outpoints: string[]): Promise<(string | null)[]>; /** * Get all TXOs for a transaction */ getByTxid(txid: string, opts?: TxoQueryOptions): Promise; /** * Search TXOs by key(s) */ search(keys: string | string[], opts?: TxoQueryOptions): Promise; }