import type { Credentials } from './config.js'; export interface ApiEnvelope { status?: boolean; data?: T; message?: string; } export declare class ApiClient { private readonly apiUrl; private readonly token?; constructor(apiUrl: string, token?: string | undefined); static forProfile(profileName?: string, creds?: Credentials | null): ApiClient; request(method: string, path: string, body?: unknown, extraHeaders?: Record): Promise; post(path: string, body?: unknown, headers?: Record): Promise; put(path: string, body?: unknown, headers?: Record): Promise; delete(path: string, headers?: Record): Promise; get(path: string, headers?: Record): Promise; getPath(path: string, query?: Record): Promise; }