/** Slack caps user/profile names at 80 characters. */ export declare const SLACK_BOT_USER_NAME_MAX_LENGTH = 80; export declare function formatMarkdownForSlack(text: string): string; export declare function normalizeSlackMarkdownToMarkdown(text: string): string; /** * Rewrites Slack's angle-bracket mention tokens into the text a human reads, so * a third party mentioned in a message reaches the model as `@Alice` rather than * the opaque `<@U08ABC>`. * * Resolution is purely local: it uses the label Slack already inlines after `|` * and never calls the Web API, so it costs no request and needs no extra scope. * A bare `<@U08ABC>` with no inline label degrades to `@U08ABC` -- still an * improvement over the raw token, and the opt-in user directory upgrades it to a * real display name. */ export declare function renderSlackMentionTokens(text: string): string; /** * Accept only a bounded, token-safe authenticated Slack username before it can * become model-visible mention text. */ export declare function normalizeSlackBotUserName(value: unknown): string | undefined; /** * Preserve one readable self-address marker while removing duplicate forms. * Protected Markdown code is opaque to identity matching. */ export declare function preserveSlackSelfMentionText(text: string, options: { readonly botUserIds: readonly string[]; readonly mentionTextAliases: readonly string[]; readonly botUserName?: string; }): string; //# sourceMappingURL=slack-markdown.d.ts.map