File size: 686 Bytes
76289e7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /** Runtime type contracts for command-detection helpers loaded across lazy boundaries. */
import type { OpenClawConfig } from "../config/types.js";
import type { CommandNormalizeOptions } from "./commands-registry.types.js";
/** Runtime-injected predicate for deciding whether visible text is an OpenClaw command. */
export type IsControlCommandMessage = (
text?: string,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
) => boolean;
/** Runtime-injected predicate for deciding whether command authorization must be computed. */
export type ShouldComputeCommandAuthorized = (
text?: string,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
) => boolean;
|