/**
 * Records of individual permission grants and revocations for members via bitmask
 * @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 { AppGrantSelect, AppGrantWithRelations, AppGrantFilter, AppGrantOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppGrantSelect, AppGrantWithRelations, AppGrantFilter, AppGrantOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appGrantsQueryKey: (variables?: object) => readonly ["appgrant", "list", object];
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppGrantsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppGrantsQuery<S extends AppGrantSelect, TData = {
    appGrants: ConnectionResult<InferSelectResult<AppGrantWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppGrantFilter, AppGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
} & Omit<UseQueryOptions<{
    appGrants: ConnectionResult<InferSelectResult<AppGrantWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```ts
 * const data = await fetchAppGrantsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppGrantsQuery<S extends AppGrantSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppGrantFilter, AppGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
}): Promise<{
    appGrants: ConnectionResult<InferSelectResult<AppGrantWithRelations, S>>;
}>;
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```ts
 * await prefetchAppGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppGrantsQuery<S extends AppGrantSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppGrantFilter, AppGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
}): Promise<void>;
