import { shorthandMethodArgs, AjaxSettings } from './ajax'; /** * 基于rxjs ajax封装的请求函数Promise版本。 * 用法与{@link ajax}基本一致,只是返回Promise */ export declare function ajaxPromise(options: AjaxSettings): Promise; export { setup, cancelAll, isCancel } from './ajax'; /** * ajax get 快捷方法 * ```ts * import { ajaxP } from 'sunny-js' * ajaxP.get('https://httpbin.org/anything').then(console.log).catch(console.error) * ``` */ export declare function get(...args: shorthandMethodArgs): Promise; /** * ajax post 快捷方法 * ```ts * import { ajaxP } from 'sunny-js' * ajaxP.post('https://httpbin.org/anything').then(console.log).catch(console.error) * ``` */ export declare function post(...args: shorthandMethodArgs): Promise; /** * ajax put 快捷方法 * ```ts * import { ajaxP } from 'sunny-js' * ajaxP.put('https://httpbin.org/anything').then(console.log).catch(console.error) * ``` */ export declare function put(...args: shorthandMethodArgs): Promise; /** * ajax patch 快捷方法 * ```ts * import { ajaxP } from 'sunny-js' * ajaxP.patch('https://httpbin.org/anything').then(console.log).catch(console.error) * ``` */ export declare function patch(...args: shorthandMethodArgs): Promise; /** * ajax delete 快捷方法 * ```ts * import { ajaxP } from 'sunny-js' * ajaxP.del('https://httpbin.org/anything').then(console.log).catch(console.error) * ``` */ export declare function del(...args: shorthandMethodArgs): Promise;