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