/**
 * Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
 * @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 { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { PrincipalAuthModuleSelect, PrincipalAuthModuleWithRelations, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const principalAuthModulesQueryKey: (variables?: object) => readonly ["principalauthmodule", "list", object];
/**
 * Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = usePrincipalAuthModulesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function usePrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect, TData = {
    principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
} & Omit<UseQueryOptions<{
    principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
 *
 * @example
 * ```ts
 * const data = await fetchPrincipalAuthModulesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchPrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
}): Promise<{
    principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
}>;
/**
 * Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database.
 *
 * @example
 * ```ts
 * await prefetchPrincipalAuthModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchPrincipalAuthModulesQuery<S extends PrincipalAuthModuleSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalAuthModuleSelect>;
}): Promise<void>;
