export declare type UseAsyncResult = [T | undefined, (...args: any[]) => Promise, boolean, undefined | Error]; export declare type UseDeleteResult = [(...args: any[]) => Promise, boolean, undefined | Error]; export declare const useAsync: (method: (...args: any[]) => Promise) => [T | undefined, (...args: any[]) => Promise, boolean, Error | undefined];