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