import type { ChatFinishReason, ChatStreamEvent } from "./protocol.js"; type ParsedRenderableCustomChunk = Extract; export declare function isRecord(value: unknown): value is Record; export declare function normalizeNewlines(value: string): string; export declare function toRenderableCustomChunk(value: unknown): ParsedRenderableCustomChunk | null; export declare function parseSerializedToolResult(value: unknown): unknown; export declare function formatToolErrorText(result: unknown): string; export declare function mapFinishReason(reason: string | undefined): ChatFinishReason | undefined; export declare function splitSseFrames(value: string): { frames: string[]; remainder: string; }; export declare function isCommentOnlySseFrame(raw: string): boolean; export {}; //# sourceMappingURL=ag-ui-helpers.d.ts.map