const API_BASE_URL = process.env.EXPO_PUBLIC_API_URL || "http://localhost:3000/api"; type HttpMethod = "GET" | "POST" | "PUT" | "DELETE"; interface RequestOptions { headers?: Record; body?: unknown; } async function request( _method: HttpMethod, _endpoint: string, _options?: RequestOptions, ): Promise { throw new Error("Not implemented"); } export const ApiClient = { get: async ( endpoint: string, options?: Omit, ): Promise => { return request("GET", endpoint, options); }, post: async ( endpoint: string, body?: unknown, options?: RequestOptions, ): Promise => { return request("POST", endpoint, { ...options, body }); }, put: async ( endpoint: string, body?: unknown, options?: RequestOptions, ): Promise => { return request("PUT", endpoint, { ...options, body }); }, delete: async ( endpoint: string, options?: Omit, ): Promise => { return request("DELETE", endpoint, options); }, }; export { API_BASE_URL };