/** * @file API Client Context * @description Context for API client management (Fast Refresh compliant). */ /** * HTTP method */ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; /** * Request options */ export interface RequestOptions { headers?: Record; params?: Record; body?: unknown; timeout?: number; retries?: number; } /** * API client context value */ export interface ApiClientContextValue { baseURL: string; request: (method: HttpMethod, url: string, options?: RequestOptions) => Promise; get: (url: string, options?: RequestOptions) => Promise; post: (url: string, body?: unknown, options?: RequestOptions) => Promise; put: (url: string, body?: unknown, options?: RequestOptions) => Promise; patch: (url: string, body?: unknown, options?: RequestOptions) => Promise; delete: (url: string, options?: RequestOptions) => Promise; setHeader: (key: string, value: string) => void; removeHeader: (key: string) => void; } /** * API client context - extracted for Fast Refresh compliance */ export declare const ApiClientContext: import('react').Context;