export interface RequestMethod { (uri: string, requestOptions: any): Promise; } export interface UseRequestData { (initialData: any, uri: string | undefined, options: { requestOptions?: any; callback?: (data: T) => void; }, deps: any[]): [T, boolean, any, () => void]; } export default function getRequestDataFactory(requestMethod: RequestMethod): UseRequestData;