/**
 * Junction table linking views to their joined tables for referential integrity
 * @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 { ViewTableSelect, ViewTableWithRelations, ViewTableFilter, ViewTableOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewTableSelect, ViewTableWithRelations, ViewTableFilter, ViewTableOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewTablesQueryKey: (variables?: object) => readonly ["viewtable", "list", object];
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewTablesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useViewTablesQuery<S extends ViewTableSelect, TData = {
    viewTables: ConnectionResult<InferSelectResult<ViewTableWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewTableFilter, ViewTableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
} & Omit<UseQueryOptions<{
    viewTables: ConnectionResult<InferSelectResult<ViewTableWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```ts
 * const data = await fetchViewTablesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchViewTablesQuery<S extends ViewTableSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewTableFilter, ViewTableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
}): Promise<{
    viewTables: ConnectionResult<InferSelectResult<ViewTableWithRelations, S>>;
}>;
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```ts
 * await prefetchViewTablesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchViewTablesQuery<S extends ViewTableSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ViewTableFilter, ViewTableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
}): Promise<void>;
