/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgChartEdgeGrantQueryKey: (id: string | number) => readonly ["orgchartedgegrant", "detail", string | number];
/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgChartEdgeGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useOrgChartEdgeGrantQuery<S extends OrgChartEdgeGrantSelect, TData = {
    orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
} & Omit<UseQueryOptions<{
    orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 *
 * @example
 * ```ts
 * const data = await fetchOrgChartEdgeGrantQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchOrgChartEdgeGrantQuery<S extends OrgChartEdgeGrantSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
}): Promise<{
    orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
}>;
/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 *
 * @example
 * ```ts
 * await prefetchOrgChartEdgeGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchOrgChartEdgeGrantQuery<S extends OrgChartEdgeGrantSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
}): Promise<void>;
