import Query from "../../domain/models/query";
import QueryOptions from "../../domain/models/query-options";
export default function useQuery<P = void, R = void>(query: Query, fn: (params: P) => any, options?: QueryOptions): {
    error?: any;
    isIdle: boolean;
    loading: boolean;
    loaded: boolean;
    refetch: any;
    isFetching: boolean;
    isRefetching: boolean;
    data?: R | undefined;
};
