/** * Pure URL/file-path span detector (SEL/CHAT "clickable links/file paths"). * * Renderer-independent so components decorate text without each one * reimplementing the regexes, and so the detection rules are unit-testable * without mounting a terminal. */ export type LinkKind = "url" | "path"; export interface LinkSpan { readonly kind: LinkKind; readonly start: number; readonly end: number; readonly value: string; } /** Detects URLs first, then file paths in the remaining, non-overlapping text. */ export declare function detectLinks(text: string): LinkSpan[];