import type { Component, VNodeChild } from "vue"; import type { Message } from "@ag-ui/core"; import type { VueCustomMessageRendererPosition, VueCustomMessageRendererProps } from "../types"; interface UseRenderCustomMessagesParams { message: Message; position: VueCustomMessageRendererPosition; } interface CustomMessageRendererResult { renderer: Component | ((props: VueCustomMessageRendererProps) => VNodeChild); props: VueCustomMessageRendererProps; } /** * Returns a function that resolves the appropriate custom message renderer for * a given message and position. * * Matches the React `useRenderCustomMessages` API: filters registered * renderers by the current agent, preferring agent-scoped renderers over * global ones, and computes the full renderer props (runId, indices, state * snapshot). * * The returned function yields `null` if no chat configuration is available * (i.e. when called outside a `CopilotChat` component tree) or if no * matching renderer is found. */ export declare function useRenderCustomMessages(): (params: UseRenderCustomMessagesParams) => CustomMessageRendererResult | null; export {}; //# sourceMappingURL=use-render-custom-messages.d.ts.map