/** * HTTP client for ECM with authentication and timeouts. */ interface ApiClientConfig { baseUrl: string; loginPath: string; username: string; password: string; timeoutMs: number; isCustomer: boolean; } export type Environment = 'dev' | 'prod'; export declare class ApiClient { private config; private cachedToken; private tokenExpiry; constructor(config: ApiClientConfig); get isCustomer(): boolean; private clearToken; private getAuthToken; private fetchWithTimeout; private request; get(path: string): Promise; post(path: string, body?: unknown): Promise; put(path: string, body?: unknown): Promise; del(path: string): Promise; } /** @deprecated Use getClient(env) for env-aware access. Kept for backward compat. */ export declare const apiClient: ApiClient; export declare function getClient(env?: Environment): ApiClient; export {};