import type { Fn } from '@cc-heart/utils/helper'; export declare enum requestType { GET = "GET", POST = "POST", PUT = "PUT", DELETE = "DELETE", PATCH = "PATCH" } export interface IInterceptor { requestInterceptor?: Array; responseInterceptor?: Array; errorInterceptor?: Array; } export type params = Record | FormData; export type requestInit = Omit; export declare function getFullPath(url: string, params: params): string; export declare function getRequestBody(params: params): string | FormData; export declare function fetchRequest(url?: string, data?: RequestInit, interceptor?: IInterceptor): Promise; export declare function request(url: string, method: requestType, requestInit: RequestInit, interceptor?: IInterceptor): Promise;