/**
 * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
 * @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 { SecureTableProvisionSelect, SecureTableProvisionWithRelations, SecureTableProvisionFilter, SecureTableProvisionOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { SecureTableProvisionSelect, SecureTableProvisionWithRelations, SecureTableProvisionFilter, SecureTableProvisionOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const secureTableProvisionsQueryKey: (variables?: object) => readonly ["securetableprovision", "list", object];
/**
 * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useSecureTableProvisionsQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useSecureTableProvisionsQuery<S extends SecureTableProvisionSelect, TData = {
    secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SecureTableProvisionFilter, SecureTableProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecureTableProvisionSelect>;
} & Omit<UseQueryOptions<{
    secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
 *
 * @example
 * ```ts
 * const data = await fetchSecureTableProvisionsQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchSecureTableProvisionsQuery<S extends SecureTableProvisionSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SecureTableProvisionFilter, SecureTableProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecureTableProvisionSelect>;
}): Promise<{
    secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
}>;
/**
 * Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent.
 *
 * @example
 * ```ts
 * await prefetchSecureTableProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchSecureTableProvisionsQuery<S extends SecureTableProvisionSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SecureTableProvisionFilter, SecureTableProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecureTableProvisionSelect>;
}): Promise<void>;
