/**
 * Association table scoping principals to specific organizations
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalEntityQueryKey: (id: string | number) => readonly ["principalentity", "detail", string | number];
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalEntityQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function usePrincipalEntityQuery<S extends PrincipalEntitySelect, TData = {
    principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
} & Omit<UseQueryOptions<{
    principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```ts
 * const data = await fetchPrincipalEntityQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchPrincipalEntityQuery<S extends PrincipalEntitySelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
}): Promise<{
    principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
}>;
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```ts
 * await prefetchPrincipalEntityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchPrincipalEntityQuery<S extends PrincipalEntitySelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
}): Promise<void>;
