export declare const request: (asyncFunction: () => Promise) => { loading: boolean; data: T | null; error: any; };