export { API, APIEndPoints, default as config } from './env/index.js'; export { QueryParamManager, QueryParams, queryParamKeys } from './query-params.js'; export { ApiPagination, ApiResponse, DataSize, EndpointBackendDef, HeadersMap, HttpMethod, LocalPersistType, OpPersistence, Ops, Persistence, QueueOptions, dataSizes, endPointDef, localPersistTypes, methods } from './type.js'; import 'zod'; import '../date/types.js'; import '../i18n/index.js'; import '../i18n/en.js'; import '../i18n/common/types.js'; import '../i18n/pt.js'; /** * Custom error class for fetch operations */ declare class FetchError extends Error { readonly status: number; readonly url: string; readonly responseText?: string | undefined; constructor(message: string, status: number, url: string, responseText?: string | undefined); } /** * Configuration options for secure fetch operations */ interface SecureFetchOptions extends RequestInit { /** JSON payload to send in request body */ json?: unknown; /** Request timeout in milliseconds (default: 30000) */ timeout?: number; /** Number of retry attempts (default: 0) */ retries?: number; /** Delay between retries in milliseconds (default: 1000) */ retryDelay?: number; /** Custom retry logic function */ shouldRetry?: (error: unknown) => boolean; } /** * Secure fetch function with timeout, retries, and error handling * @param url - The URL to fetch * @param options - Fetch options including custom retry and timeout settings * @returns Promise resolving to the parsed response * @template T - The expected response type */ declare function secureFetch(url: string, options?: SecureFetchOptions): Promise; export { FetchError, type SecureFetchOptions, secureFetch };