export declare function hookAsyncData<T>(init: Promise<T> | (() => Promise<T>)): {
    getData: () => Promise<T>;
    setData: (newData: T) => void;
    setDataInFn: (fn: (data: T) => T) => Promise<void>;
};
