/**
 * 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 { ListSelectionConfig } from '../selection';
import type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityFilter, PrincipalEntityOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityFilter, PrincipalEntityOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalEntitiesQueryKey: (variables?: object) => readonly ["principalentity", "list", object];
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalEntitiesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function usePrincipalEntitiesQuery<S extends PrincipalEntitySelect, TData = {
    principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
} & Omit<UseQueryOptions<{
    principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```ts
 * const data = await fetchPrincipalEntitiesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchPrincipalEntitiesQuery<S extends PrincipalEntitySelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
}): Promise<{
    principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
}>;
/**
 * Association table scoping principals to specific organizations
 *
 * @example
 * ```ts
 * await prefetchPrincipalEntitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchPrincipalEntitiesQuery<S extends PrincipalEntitySelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
}): Promise<void>;
