/**
 * Audit log of permission additions and removals from the defaults 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 { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgPermissionDefaultGrantSelect, OrgPermissionDefaultGrantWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgPermissionDefaultGrantQueryKey: (id: string | number) => readonly ["orgpermissiondefaultgrant", "detail", string | number];
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgPermissionDefaultGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect, TData = {
    orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
} & Omit<UseQueryOptions<{
    orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```ts
 * const data = await fetchOrgPermissionDefaultGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
}): Promise<{
    orgPermissionDefaultGrant: InferSelectResult<OrgPermissionDefaultGrantWithRelations, S> | null;
}>;
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```ts
 * await prefetchOrgPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchOrgPermissionDefaultGrantQuery<S extends OrgPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgPermissionDefaultGrantSelect>;
}): Promise<void>;
