import { Keypair } from "@solana/web3.js"; export declare class ApiClient { private baseUrl; constructor(baseUrl?: string); get(path: string): Promise; post(path: string, body: Record): Promise; postAuthenticated(path: string, body: Record, keypair: Keypair, action: string): Promise; /** * POST with x402 payment. Makes initial request, if 402 returned, * calls the payment handler to construct payment header and retries. */ postWithPayment(path: string, body: Record, constructPaymentHeader: (res: Response) => Promise): Promise; getBaseUrl(): string; } export declare const api: ApiClient;