/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 * @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 { ApiSchemaSelect, ApiSchemaWithRelations, ApiSchemaFilter, ApiSchemaOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSchemaSelect, ApiSchemaWithRelations, ApiSchemaFilter, ApiSchemaOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apiSchemasQueryKey: (variables?: object) => readonly ["apischema", "list", object];
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApiSchemasQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useApiSchemasQuery<S extends ApiSchemaSelect, TData = {
    apiSchemas: ConnectionResult<InferSelectResult<ApiSchemaWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiSchemaFilter, ApiSchemaOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
} & Omit<UseQueryOptions<{
    apiSchemas: ConnectionResult<InferSelectResult<ApiSchemaWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```ts
 * const data = await fetchApiSchemasQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchApiSchemasQuery<S extends ApiSchemaSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiSchemaFilter, ApiSchemaOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
}): Promise<{
    apiSchemas: ConnectionResult<InferSelectResult<ApiSchemaWithRelations, S>>;
}>;
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```ts
 * await prefetchApiSchemasQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchApiSchemasQuery<S extends ApiSchemaSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiSchemaFilter, ApiSchemaOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
}): Promise<void>;
