/**
 * 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 { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appGrantQueryKey: (id: string | number) => readonly ["appgrant", "detail", string | number];
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppGrantQuery<S extends AppGrantSelect, TData = {
    appGrant: InferSelectResult<AppGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
} & Omit<UseQueryOptions<{
    appGrant: InferSelectResult<AppGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```ts
 * const data = await fetchAppGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppGrantQuery<S extends AppGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
}): Promise<{
    appGrant: InferSelectResult<AppGrantWithRelations, S> | null;
}>;
/**
 * Records of individual permission grants and revocations for members via bitmask
 *
 * @example
 * ```ts
 * await prefetchAppGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppGrantQuery<S extends AppGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppGrantSelect>;
}): Promise<void>;
