/**
 * Single item query hook for Table
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { TableSelect, TableWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { TableSelect, TableWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const tableQueryKey: (id: string | number) => readonly ["table", "detail", string | number];
/**
 * Query hook for fetching a single Table
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useTableQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useTableQuery<S extends TableSelect, TData = {
    table: InferSelectResult<TableWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, TableSelect>;
} & Omit<UseQueryOptions<{
    table: InferSelectResult<TableWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single Table without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchTableQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchTableQuery<S extends TableSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, TableSelect>;
}): Promise<{
    table: InferSelectResult<TableWithRelations, S> | null;
}>;
/**
 * Prefetch a single Table for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchTableQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchTableQuery<S extends TableSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, TableSelect>;
}): Promise<void>;
