import { ManagerOption } from '@foxpage/foxpage-types';
type RequestMethod = 'get' | 'delete' | 'post' | 'put' | 'patch';
/**
 *  foxpage webApi request
 */
export type FoxpageRequest = <T>(method: RequestMethod, api: string, params: Record<string, unknown>, opt?: {
    throwError: boolean;
}) => Promise<T | null>;
/**
 * create request
 * @param opt request options
 * @returns {FoxpageRequest}
 */
export declare const createRequest: (opt: ManagerOption['dataService']) => FoxpageRequest;
export {};
