/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { TableSelect, TableWithRelations, TableFilter, TableOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { TableSelect, TableWithRelations, TableFilter, TableOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const tablesQueryKey: (variables?: object) => readonly ["table", "list", object];
/**
 * Query hook for fetching Table list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useTablesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useTablesQuery<S extends TableSelect, TData = {
    tables: ConnectionResult<InferSelectResult<TableWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableFilter, TableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableSelect>;
} & Omit<UseQueryOptions<{
    tables: ConnectionResult<InferSelectResult<TableWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch Table list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchTablesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchTablesQuery<S extends TableSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableFilter, TableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableSelect>;
}): Promise<{
    tables: ConnectionResult<InferSelectResult<TableWithRelations, S>>;
}>;
/**
 * Prefetch Table list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchTablesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchTablesQuery<S extends TableSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TableFilter, TableOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableSelect>;
}): Promise<void>;
