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