import type { RemoteClawConfig } from "../../config/config.js"; import type { SessionEntry } from "../../config/sessions.js"; import type { MsgContext, TemplateContext } from "../templating.js"; import type { ElevatedLevel, ReasoningLevel, VerboseLevel } from "../thinking.js"; import type { GetReplyOptions, ReplyPayload } from "../types.js"; import { buildStatusReply, handleCommands } from "./commands.js"; import type { InlineDirectives } from "./directive-handling.js"; import type { TypingController } from "./typing.js"; export type InlineActionResult = { kind: "reply"; reply: ReplyPayload | ReplyPayload[] | undefined; } | { kind: "continue"; directives: InlineDirectives; abortedLastRun: boolean; }; export declare function handleInlineActions(params: { ctx: MsgContext; sessionCtx: TemplateContext; cfg: RemoteClawConfig; agentId: string; agentDir?: string; sessionEntry?: SessionEntry; previousSessionEntry?: SessionEntry; sessionStore?: Record; sessionKey: string; storePath?: string; sessionScope: Parameters[0]["sessionScope"]; workspaceDir: string; isGroup: boolean; opts?: GetReplyOptions; typing: TypingController; allowTextCommands: boolean; inlineStatusRequested: boolean; command: Parameters[0]["command"]; directives: InlineDirectives; cleanedBody: string; elevatedEnabled: boolean; elevatedAllowed: boolean; elevatedFailures: Array<{ gate: string; key: string; }>; defaultActivation: Parameters[0]["defaultGroupActivation"]; resolvedVerboseLevel: VerboseLevel | undefined; resolvedReasoningLevel: ReasoningLevel; resolvedElevatedLevel: ElevatedLevel; provider: string; model: string; contextTokens: number; directiveAck?: ReplyPayload; abortedLastRun: boolean; }): Promise;