/**
 * 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 { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const appAdminGrantQueryKey: (id: string | number) => readonly ["appadmingrant", "detail", string | number];
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useAppAdminGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useAppAdminGrantQuery<S extends AppAdminGrantSelect, TData = {
    appAdminGrant: InferSelectResult<AppAdminGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
} & Omit<UseQueryOptions<{
    appAdminGrant: InferSelectResult<AppAdminGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```ts
 * const data = await fetchAppAdminGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchAppAdminGrantQuery<S extends AppAdminGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
}): Promise<{
    appAdminGrant: InferSelectResult<AppAdminGrantWithRelations, S> | null;
}>;
/**
 * Records of admin role grants and revocations between members
 *
 * @example
 * ```ts
 * await prefetchAppAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchAppAdminGrantQuery<S extends AppAdminGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, AppAdminGrantSelect>;
}): Promise<void>;
