import type { DashboardNarrativeResponseDto } from '../../../infra/api/narrative/dashboard-narrative-endpoints.js'; import type { NarrativeData } from '../components/narrative/types.js'; /** * Tells whether a response body is a dashboard narrative rather than some other 200 payload. * @param body - Parsed response body. * @returns `true` when `overview` is a string, `insights` is an array of `{ text, status }` and * `generatedAt`, if present, is a string. * @internal */ export declare function isDashboardNarrativeResponse(body: unknown): body is DashboardNarrativeResponseDto; /** * Maps the wire response of the dashboard narrative service onto the view model the widget renders. * The only place that knows the wire shape. * @param response - Wire response. * @returns View model; `copyText` is assembled here from the overview and the insights, and a * missing `generatedAt` becomes the time of the mapping. * @internal */ export declare function toNarrativeData(response: DashboardNarrativeResponseDto): NarrativeData;