/**
 * Records of admin role grants and revocations between members
 * @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 { AppAdminGrantSelect, AppAdminGrantWithRelations, AppAdminGrantFilter, AppAdminGrantOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { AppAdminGrantSelect, AppAdminGrantWithRelations, AppAdminGrantFilter, AppAdminGrantOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appAdminGrantsQueryKey: (variables?: object) => readonly ["appadmingrant", "list", object];
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppAdminGrantsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useAppAdminGrantsQuery<S extends AppAdminGrantSelect, TData = {
    appAdminGrants: ConnectionResult<InferSelectResult<AppAdminGrantWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppAdminGrantFilter, AppAdminGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
} & Omit<UseQueryOptions<{
    appAdminGrants: ConnectionResult<InferSelectResult<AppAdminGrantWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```ts
 * const data = await fetchAppAdminGrantsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchAppAdminGrantsQuery<S extends AppAdminGrantSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppAdminGrantFilter, AppAdminGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
}): Promise<{
    appAdminGrants: ConnectionResult<InferSelectResult<AppAdminGrantWithRelations, S>>;
}>;
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```ts
 * await prefetchAppAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchAppAdminGrantsQuery<S extends AppAdminGrantSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, AppAdminGrantFilter, AppAdminGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
}): Promise<void>;
