/**
 * 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 { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewTableQueryKey: (id: string | number) => readonly ["viewtable", "detail", string | number];
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewTableQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useViewTableQuery<S extends ViewTableSelect, TData = {
    viewTable: InferSelectResult<ViewTableWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
} & Omit<UseQueryOptions<{
    viewTable: InferSelectResult<ViewTableWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```ts
 * const data = await fetchViewTableQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchViewTableQuery<S extends ViewTableSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
}): Promise<{
    viewTable: InferSelectResult<ViewTableWithRelations, S> | null;
}>;
/**
 * Junction table linking views to their joined tables for referential integrity
 *
 * @example
 * ```ts
 * await prefetchViewTableQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchViewTableQuery<S extends ViewTableSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewTableSelect>;
}): Promise<void>;
