import type { InteractionBlock } from "../types/interactions.js"; import type { Content } from "../types/primitives.js"; /** Hard caps mirroring the dashboard parsers — keep a runaway template safe. */ export declare const MAX_FORM_FIELDS = 20; export declare const MAX_FOLLOWUPS = 4; export declare const MAX_TASK_TITLE_LEN = 200; /** A parsed block together with the character region it occupied in the text. */ export interface InteractionRegion { start: number; end: number; block: InteractionBlock; } /** Find every interaction-block region in `text`, sorted by position, de-overlapped. */ export declare function findInteractionRegions(text: string): InteractionRegion[]; export interface ParsedInteractions { /** Blocks in document order. */ blocks: InteractionBlock[]; /** Message text with every block marker removed and whitespace tidied. */ cleanedText: string; } /** Preserve claimable controls while removing a terminal unclaimed suffix. */ export declare function stripUnclaimedInteractionMarkup(text: string): string; /** * Parse `text` into its interaction blocks plus the human-readable text with * the markers stripped. The cleaned text is what a connector shows above the * native controls it renders from `blocks`. */ export declare function parseInteractionBlocks(text: string): ParsedInteractions; /** * Attach parsed interaction blocks to `content.interactions`. Idempotent and * non-destructive for human prose and valid markers; terminal unclaimed * machinery is removed before any delivery surface receives the content. */ export declare function normalizeContentInteractions(content: Content): Content;