import { HttpResponse } from './response.js'; /** * Fetches data from a URL with configurable HTTP method, body, headers, and options. * @param url - The URL to fetch from * @param method - The HTTP method to use (DELETE, GET, POST, PUT). Defaults to GET. * @param body - Optional request body data * @param headers - Optional request headers * @param options - Optional fetch options (excluding body, headers, method) * @returns Promise resolving to HttpResponse containing data, error and status * @example * ```ts * // GET request * const response = await fetchData('/api/users/123'); * * // POST request with body * const response = await fetchData( * '/api/users', * 'POST', * { name: 'John', email: 'john@example.com' } * ); * ``` */ export declare function fetchData(url: string, method?: 'DELETE' | 'GET' | 'POST' | 'PUT', body?: unknown, headers?: Record, options?: Omit, retries?: number): Promise>;