import type { SessionEntry, SessionScope } from "../../config/sessions/types.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; import type { MsgContext } from "../templating.js"; import type { ElevatedLevel } from "../thinking.js"; import type { ReplyPayload } from "../types.js"; import type { CommandContext } from "./commands-types.js"; import type { ApplyInlineDirectivesFastLaneParams } from "./directive-handling.params.js"; import type { InlineDirectives } from "./directive-handling.parse.js"; import type { createModelSelectionState } from "./model-selection.js"; import type { TypingController } from "./typing.js"; type AgentDefaults = NonNullable["defaults"]; type AgentEntry = NonNullable["list"]>[number]; export declare function formatModelOverrideResetEvent(params: { rejectedRef?: string; initialModelLabel: string; }): string; export type ApplyDirectiveResult = { kind: "reply"; reply: ReplyPayload | ReplyPayload[] | undefined; } | { kind: "continue"; directives: InlineDirectives; provider: string; model: string; contextTokens: number; directiveAck?: ReplyPayload; perMessageQueueMode?: InlineDirectives["queueMode"]; perMessageQueueOptions?: { debounceMs?: number; cap?: number; dropPolicy?: InlineDirectives["dropPolicy"]; }; }; export declare function applyInlineDirectiveOverrides(params: { ctx: MsgContext; cfg: OpenClawConfig; agentId: string; agentDir: string; workspaceDir: string; agentCfg: AgentDefaults; agentEntry?: AgentEntry; sessionEntry: SessionEntry; sessionStore: Record; sessionKey: string; storePath?: string; sessionScope: SessionScope | undefined; isGroup: boolean; allowTextCommands: boolean; command: CommandContext; directives: InlineDirectives; messageProviderKey: string; elevatedEnabled: boolean; elevatedAllowed: boolean; elevatedFailures: Array<{ gate: string; key: string; }>; defaultProvider: string; defaultModel: string; aliasIndex: ApplyInlineDirectivesFastLaneParams["aliasIndex"]; provider: string; model: string; modelState: Awaited>; initialModelLabel: string; formatModelSwitchEvent: (label: string, alias?: string) => string; resolvedElevatedLevel: ElevatedLevel; defaultActivation: () => "always" | "mention"; contextTokens: number; effectiveModelDirective?: string; typing: TypingController; }): Promise; export {};