/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ListSelectionConfig } from '../selection';
import type { ViewRuleSelect, ViewRuleWithRelations, ViewRuleFilter, ViewRuleOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewRuleSelect, ViewRuleWithRelations, ViewRuleFilter, ViewRuleOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewRulesQueryKey: (variables?: object) => readonly ["viewrule", "list", object];
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewRulesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useViewRulesQuery<S extends ViewRuleSelect, TData = {
    viewRules: ConnectionResult<InferSelectResult<ViewRuleWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewRuleFilter, ViewRuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
} & Omit<UseQueryOptions<{
    viewRules: ConnectionResult<InferSelectResult<ViewRuleWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```ts
 * const data = await fetchViewRulesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchViewRulesQuery<S extends ViewRuleSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewRuleFilter, ViewRuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
}): Promise<{
    viewRules: ConnectionResult<InferSelectResult<ViewRuleWithRelations, S>>;
}>;
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```ts
 * await prefetchViewRulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchViewRulesQuery<S extends ViewRuleSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewRuleFilter, ViewRuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
}): Promise<void>;
