/**
 * 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 { ApiSelect, ApiWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiSelect, ApiWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apiQueryKey: (id: string | number) => readonly ["api", "detail", string | number];
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApiQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useApiQuery<S extends ApiSelect, TData = {
    api: InferSelectResult<ApiWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSelect>;
} & Omit<UseQueryOptions<{
    api: InferSelectResult<ApiWithRelations, S> | null;
}, 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 fetchApiQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchApiQuery<S extends ApiSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSelect>;
}): Promise<{
    api: InferSelectResult<ApiWithRelations, S> | null;
}>;
/**
 * API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings
 *
 * @example
 * ```ts
 * await prefetchApiQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchApiQuery<S extends ApiSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiSelect>;
}): Promise<void>;
