import type { ApiResponse, SendkitConfig } from './types.js'; export declare class ApiClient { private baseUrl; private apiKey; private workspaceId?; constructor(config?: Partial); private headers; private request; get(path: string, params?: Record): Promise>; post(path: string, body?: unknown): Promise>; patch(path: string, body?: unknown): Promise>; del(path: string, body?: unknown): Promise>; upload(path: string, formData: FormData): Promise>; getRaw(path: string, params?: Record): Promise; } export declare class ApiError extends Error { code: string; status: number; constructor(message: string, code: string, status: number); } export declare function createClient(overrides?: Partial): ApiClient; /** * Create a client that respects global CLI flags (--api-key, --workspace, --base-url). * Pass the Command object from the action handler. */ export declare function createClientFromCmd(cmd: import('commander').Command, extra?: Partial): ApiClient;