export interface ApiResponse { code: number; msg: string; data: T; success: boolean; } export declare class XxyyApiError extends Error { code: number; constructor(code: number, message: string); } export declare class XxyyClient { private apiKey; private baseUrl; constructor(apiKey: string, baseUrl?: string); private headers; private request; get(path: string, params?: Record): Promise>; post(path: string, body?: unknown, params?: Record): Promise>; postNoRetry(path: string, body?: unknown, params?: Record): Promise>; } export declare function getClient(opts?: { apiKey?: string; baseUrl?: string; }): XxyyClient;