import type { DataState, ErrorLike, GetDataState, NetworkStatus } from "@apollo/client";
import type { MaybeMasked } from "@apollo/client/masking";
import type { QueryRef } from "@apollo/client/react/internal";
export declare namespace useReadQuery {
    type Result<TData = unknown, TStates extends DataState<TData>["dataState"] = DataState<TData>["dataState"]> = {
        /**
         * If the query produces one or more errors, this object contains either an
         * array of `graphQLErrors` or a single `networkError`. Otherwise, this value
         * is `undefined`.
         *
         * This property can be ignored when using the default `errorPolicy` or an
         * `errorPolicy` of `none`. The hook will throw the error instead of setting
         * this property.
         */
        error: ErrorLike | undefined;
        /**
         * A number indicating the current network state of the query's associated
         * request. {@link https://github.com/apollographql/apollo-client/blob/d96f4578f89b933c281bb775a39503f6cdb59ee8/src/core/networkStatus.ts#L4 | See possible values}.
         */
        networkStatus: NetworkStatus;
    } & GetDataState<MaybeMasked<TData>, TStates>;
}
export declare function useReadQuery<TData, TStates extends DataState<TData>["dataState"]>(queryRef: QueryRef<TData, any, TStates>): useReadQuery.Result<TData, TStates>;
//# sourceMappingURL=useReadQuery.d.ts.map
