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