/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 * @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 { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apisQueryKey: (variables?: object) => readonly ["api", "list", object];
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApisQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useApisQuery<S extends ApiSelect, TData = {
    apis: ConnectionResult<InferSelectResult<ApiWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiFilter, ApiOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSelect>;
} & Omit<UseQueryOptions<{
    apis: ConnectionResult<InferSelectResult<ApiWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```ts
 * const data = await fetchApisQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchApisQuery<S extends ApiSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiFilter, ApiOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSelect>;
}): Promise<{
    apis: ConnectionResult<InferSelectResult<ApiWithRelations, S>>;
}>;
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```ts
 * await prefetchApisQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchApisQuery<S extends ApiSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiFilter, ApiOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiSelect>;
}): Promise<void>;
