import { InferServingRequest, InferServingResponse, ServingAlias } from "./types.js"; //#region src/react/hooks/use-serving-invoke.d.ts interface UseServingInvokeOptions { /** Endpoint alias for named mode. Omit for default mode. */ alias?: K; /** If false, does not invoke automatically on mount. Default: false */ autoStart?: boolean; } interface UseServingInvokeResult> { /** Trigger the invocation. Pass an optional body override for this invocation. */ invoke: (overrideBody?: TBody) => Promise; /** Response data, null until loaded. */ data: T | null; /** Whether a request is in progress. */ loading: boolean; /** Error message, if any. */ error: string | null; } /** * Hook for non-streaming invocation of a serving endpoint. * Calls `POST /api/serving/invoke` (default) or `POST /api/serving/{alias}/invoke` (named). * * When the type generator has populated `ServingEndpointRegistry`, the response type * is automatically inferred from the endpoint's OpenAPI schema. */ declare function useServingInvoke(body: InferServingRequest, options?: UseServingInvokeOptions): UseServingInvokeResult, InferServingRequest>; //#endregion export { UseServingInvokeOptions, UseServingInvokeResult, useServingInvoke }; //# sourceMappingURL=use-serving-invoke.d.ts.map