/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 * @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 { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalScopeOverridesQueryKey: (variables?: object) => readonly ["principalscopeoverride", "list", object];
/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalScopeOverridesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function usePrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect, TData = {
    principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
} & Omit<UseQueryOptions<{
    principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 *
 * @example
 * ```ts
 * const data = await fetchPrincipalScopeOverridesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchPrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
}): Promise<{
    principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
}>;
/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 *
 * @example
 * ```ts
 * await prefetchPrincipalScopeOverridesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchPrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
}): Promise<void>;
