/** * 纯函数校验:能否把 `command` 作为一行斜杠命令注入到 TUI(inject_command)。 * 规则:必须 `/` 开头、单行、命令名不在 FORBIDDEN 固定黑名单里、且命令名在调用方 * 传入的 allowlist 里(缺省/空 allowlist = 默认全拒,即通用注入关闭)。 * 不做副作用、不访问任何全局状态——allowlist 由调用方(如 bot-registry 的 * tuiSlashAllow)解析后传入。 */ export declare function validateSlashInjection(command: string, allowlist: readonly string[] | undefined): { ok: true; command: string; } | { ok: false; error: string; }; //# sourceMappingURL=slash-inject.d.ts.map