/**
 * 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 { ListSelectionConfig } from '../selection';
import type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppPermissionDefaultGrantSelect, AppPermissionDefaultGrantWithRelations, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appPermissionDefaultGrantsQueryKey: (variables?: object) => readonly ["apppermissiondefaultgrant", "list", object];
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppPermissionDefaultGrantsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect, TData = {
    appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
} & Omit<UseQueryOptions<{
    appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```ts
 * const data = await fetchAppPermissionDefaultGrantsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
}): Promise<{
    appPermissionDefaultGrants: ConnectionResult<InferSelectResult<AppPermissionDefaultGrantWithRelations, S>>;
}>;
/**
 * Audit log of permission additions and removals from the defaults bitmask
 *
 * @example
 * ```ts
 * await prefetchAppPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppPermissionDefaultGrantsQuery<S extends AppPermissionDefaultGrantSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppPermissionDefaultGrantFilter, AppPermissionDefaultGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppPermissionDefaultGrantSelect>;
}): Promise<void>;
