/**
 * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
     and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
     Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
     via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
     Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
     Set table_provision to a single jsonb object (using the same shape as provision_table() /
     blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
     as an escape hatch to apply zero policies.
 * @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 { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const entityTypeProvisionsQueryKey: (variables?: object) => readonly ["entitytypeprovision", "list", object];
/**
 * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
     and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
     Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
     via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
     Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
     Set table_provision to a single jsonb object (using the same shape as provision_table() /
     blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
     as an escape hatch to apply zero policies.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useEntityTypeProvisionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect, TData = {
    entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
} & Omit<UseQueryOptions<{
    entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
     and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
     Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
     via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
     Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
     Set table_provision to a single jsonb object (using the same shape as provision_table() /
     blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
     as an escape hatch to apply zero policies.
 *
 * @example
 * ```ts
 * const data = await fetchEntityTypeProvisionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
}): Promise<{
    entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
}>;
/**
 * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
     and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
     Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
     via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
     Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
     Set table_provision to a single jsonb object (using the same shape as provision_table() /
     blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
     as an escape hatch to apply zero policies.
 *
 * @example
 * ```ts
 * await prefetchEntityTypeProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
}): Promise<void>;
