import { type FailCallbackResult, type PickOptions } from '../../core';
export type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
export interface RequestOptions<T = any> {
    url: string;
    data?: any;
    header?: {
        [props: string]: any;
    };
    timeout?: number;
    method?: Method;
    success?: (result: T) => void;
    fail?: (err: FailCallbackResult) => void;
}
export declare const request: <P = any, T extends RequestOptions<P> = RequestOptions<P>>(options: T) => import("../../core").PromisifySuccessResult<PickOptions<T>, RequestOptions<P>>;
