/**
 * 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 { ListSelectionConfig } from '../selection';
import type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { OrgChartEdgeGrantSelect, OrgChartEdgeGrantWithRelations, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const orgChartEdgeGrantsQueryKey: (variables?: object) => readonly ["orgchartedgegrant", "list", object];
/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useOrgChartEdgeGrantsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useOrgChartEdgeGrantsQuery<S extends OrgChartEdgeGrantSelect, TData = {
    orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
} & Omit<UseQueryOptions<{
    orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
}, 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 fetchOrgChartEdgeGrantsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchOrgChartEdgeGrantsQuery<S extends OrgChartEdgeGrantSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
}): Promise<{
    orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
}>;
/**
 * Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table
 *
 * @example
 * ```ts
 * await prefetchOrgChartEdgeGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchOrgChartEdgeGrantsQuery<S extends OrgChartEdgeGrantSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeGrantSelect>;
}): Promise<void>;
