import { ElnoraConfig } from "../types.js"; export declare class ElnoraApiClient { private client; private originUrl; private orgId?; private lastRequestTime; constructor(config: Pick, auth: string | { apiKey: string; }); private validateHostname; /** Set the organization context for subsequent requests (adds X-Organization-Id header). */ setOrgContext(orgId: string): void; private get orgHeaders(); /** Enforce minimum delay between requests to prevent accidental DoS. */ private throttle; /** * Execute a request function with automatic retry on 429 rate limit. * Respects Retry-After header when present. */ private withRetry; get(path: string, params?: Record): Promise; post(path: string, body?: unknown, options?: { timeout?: number; }): Promise; put(path: string, body?: unknown): Promise; patch(path: string, body?: unknown): Promise; del(path: string): Promise; /** Hit root-level /health (not under /api/v1). */ healthCheck(): Promise; sendMessage(taskId: string, content: string, fileIds?: string[]): Promise; getFileContent(fileId: string): Promise<{ content: string; name: string; fileType: string; }>; uploadFile(name: string, content: string, fileType?: string): Promise; } //# sourceMappingURL=elnora-api-client.d.ts.map