import { FetchContextType, ImperativeFetch, PathParams, RequestWithBody } from "../types"; export declare const windowExists: boolean; export declare function notNull(target: any): boolean; export declare function getRequestHeaders(req: Request): { [k: string]: string; }; export declare function isDefined(target: any): boolean; export declare function isFunction(target: any): boolean; export declare function hasBaseUrl(target: string | String): boolean; export declare function jsonCompare(a: any, b: any): boolean; /** * A serialize function that returns a JSON string */ export declare function serialize(input: any, replacer?: any, space?: any): string; export declare const isFormData: (target: any) => boolean; export declare function queue(callback: any, time?: number): void; /** * * @param str The target string * @param $params The params to parse in the url * * Params should be separated by `"/"`, (e.g. `"/api/[resource]/:id"`) * * URL search params will not be affected */ export declare function setURLParams(str: UrlType, $params: PathParams extends Record ? any : PathParams): string; export declare function setQueryParams(url: string, params?: any): string; export declare function setParamsAndQuery(url: string, p?: { params?: any; query?: any; }): string; export declare function actionResult(data: T, config?: { status?: number; error?: any; }): { status?: number; error?: any; data: T; }; export declare const actionData: typeof actionResult; export declare function $form(form: FormData): T; export declare function gql(...args: any): { value: T; variables: VT; baseUrl: string; graphqlPath: string; headers: { [key: string]: any; }; }; export declare const $formData: typeof $form; export declare function $searchParams(input: string): T; /** * Creates a new request function. This is for usage with fetcher and fetcher.extend */ export declare function createRequestFn(method: string, baseUrl: string, $headers: any): RequestWithBody; /** * An Client for making HTTP Requests */ declare const Client: { get: RequestWithBody; delete: RequestWithBody; head: RequestWithBody; options: RequestWithBody; post: RequestWithBody; put: RequestWithBody; patch: RequestWithBody; purge: RequestWithBody; link: RequestWithBody; unlink: RequestWithBody; extend: (ctx: FetchContextType) => ImperativeFetch; }; export { Client };