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