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