/**
 * 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 { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalScopeOverrideQueryKey: (id: string | number) => readonly ["principalscopeoverride", "detail", string | number];
/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalScopeOverrideQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect, TData = {
    principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
} & Omit<UseQueryOptions<{
    principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
}, 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 fetchPrincipalScopeOverrideQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
}): Promise<{
    principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
}>;
/**
 * Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
 *
 * @example
 * ```ts
 * await prefetchPrincipalScopeOverrideQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
}): Promise<void>;
