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