import type { ExternalAgentExecution } from '../../agent-config/schema.js'; import type { ExternalRuntimeCommand } from './types.js'; export { isExternalLeadingSlashCommand, parseExternalLeadingSlashCommand } from './slash-command-parser.js'; export type ExternalHostSlashAction = 'reset' | 'abort' | 'compact' | 'watch'; export type ExternalSlashCommandDisposition = { owner: 'none'; } | { owner: 'external'; commandName: string; args: string; nativeDeclared: boolean; } | { owner: 'host'; action: ExternalHostSlashAction; commandName: string; args: string; }; /** * Resolve slash-command ownership for an external agent session with **external native commands first**: * * 1. If the external runtime natively advertises the command, the external agent always owns it. * 2. Otherwise, only external-compatible xopc host commands (`new`/`reset`/`restart`, `abort`/`stop`/`cancel`, * `watch`/`schedule`, and `compact` when the driver implements `compactSession`) are handled by xopc. * 3. Every other `/command` passes straight through to the external runtime (covering project-local custom * commands that were not discovered during `tmpdir()` probe). */ export declare function resolveExternalSlashCommandDispositionFromCommands(content: string, options: { nativeCommands?: ReadonlyArray; supportsCompact: boolean; }): ExternalSlashCommandDisposition; export declare function resolveExternalSlashCommandDisposition(execution: ExternalAgentExecution, content: string): ExternalSlashCommandDisposition; export declare function resolveExternalSlashCommandDispositionAsync(execution: ExternalAgentExecution, content: string): Promise;