/** * Block and skip reasons are read by a person (on the SpecWithCode Board, in * `task list`, in handoffs), so they are checked where they are written: * * - `normalizeReason` makes safe spacing fixes only: runs of whitespace become * one space, and a missing space after a comma or semicolon is added * (`valid;113/148` → `valid; 113/148`). Numbers (`1,000`), URLs and text in * backticks are never changed. * - `findGluedWords` finds words written without their spaces * (`offline37profileattestation`, `exactartifactcopies`, `35unresolved`). * Word splits are never guessed; the writer is asked to rewrite the reason. * * Only writers call this. Reading a ledger never applies these rules, so old * lines still load as written. * * @module core/tasks/reason-text */ /** Reasons longer than this get a warning; nothing is cut or refused for length. */ export declare const LONG_REASON_CHARS = 280; /** Collapse whitespace and add the missing space after `,` and `;` outside code and URLs. */ export declare function normalizeReason(text: string): string; /** Words written without their spaces, in the order they appear (deduplicated). */ export declare function findGluedWords(text: string): string[]; export interface ReasonCheck { /** The reason as it will be stored. */ text: string; /** Glued words; a writer refuses the reason when this is not empty. */ glued: string[]; /** Longer than LONG_REASON_CHARS; a writer warns but stores it. */ long: boolean; } export declare function checkReason(text: string): ReasonCheck; /** The error a writer prints when it refuses a reason with glued words. */ export declare function gluedReasonMessage(glued: string[]): string; /** The warning a writer prints when a reason is long. */ export declare function longReasonWarning(length: number): string; //# sourceMappingURL=reason-text.d.ts.map