/** * Telegram outbound-text mechanics: the message size limit, deterministic * fitting under it, and the "message is not modified" edit no-op classifier. * Dependency-free and Worker-safe. */ /** Telegram's post-entity character limit for one message. */ export declare const TELEGRAM_MAX_CHARS = 4096; export interface FitTelegramTextOptions { maxChars?: number; /** Retain a short final paragraph, useful for a summary's source/footer block. */ preserveFinalBlock?: boolean; } /** Deterministically fit plain text to Telegram's post-entity character limit. */ export declare function fitTelegramText(text: string, opts?: FitTelegramTextOptions): string; /** * Telegram rejects an edit whose result equals the current message with * "message is not modified". That is a no-op, not an error — the desired state * is already live. Callers treat it as delivered instead of falling back to a * degraded (e.g. plain-text) retry that WOULD differ and silently strip * formatting, or wrongly sending a duplicate. */ export declare function isNotModified(err: unknown): boolean; //# sourceMappingURL=text.d.ts.map