/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 * @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 { PrincipalSelect, PrincipalWithRelations, PrincipalFilter, PrincipalOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalSelect, PrincipalWithRelations, PrincipalFilter, PrincipalOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalsQueryKey: (variables?: object) => readonly ["principal", "list", object];
/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function usePrincipalsQuery<S extends PrincipalSelect, TData = {
    principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
} & Omit<UseQueryOptions<{
    principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 *
 * @example
 * ```ts
 * const data = await fetchPrincipalsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchPrincipalsQuery<S extends PrincipalSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
}): Promise<{
    principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
}>;
/**
 * Scoped sub-identities (API keys and agents) with precomputed SPRT
 *
 * @example
 * ```ts
 * await prefetchPrincipalsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchPrincipalsQuery<S extends PrincipalSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
}): Promise<void>;
