import React from 'react';
import { Result } from 'ahooks/es/useRequest/src/types';
export declare const AsyncDataContext: React.Context<Result<any, any> & {
    state?: any;
    setState?: any;
}>;
export interface AsyncDataProviderProps {
    value?: any;
    request?: any;
    uid?: string;
    onSuccess?: (data: any, params: any) => void;
    children: React.ReactNode;
}
export declare const AsyncDataProvider: (props: AsyncDataProviderProps) => React.JSX.Element;
export declare const useAsyncData: () => Result<any, any> & {
    state?: any;
    setState?: any;
};
