/**
 * 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 { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apiSchemaQueryKey: (id: string | number) => readonly ["apischema", "detail", string | number];
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApiSchemaQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useApiSchemaQuery<S extends ApiSchemaSelect, TData = {
    apiSchema: InferSelectResult<ApiSchemaWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
} & Omit<UseQueryOptions<{
    apiSchema: InferSelectResult<ApiSchemaWithRelations, S> | null;
}, 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 fetchApiSchemaQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchApiSchemaQuery<S extends ApiSchemaSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
}): Promise<{
    apiSchema: InferSelectResult<ApiSchemaWithRelations, S> | null;
}>;
/**
 * Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API
 *
 * @example
 * ```ts
 * await prefetchApiSchemaQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchApiSchemaQuery<S extends ApiSchemaSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSchemaSelect>;
}): Promise<void>;
