import { type CoauthorAction } from './coauthor-client.js';
/**
 * Cmd+K slash-command parsing for the AI co-author.
 *
 * Recognized syntax (case-insensitive, leading whitespace tolerated):
 *
 *     /ai <action> [text...]
 *
 * `<action>` is one of `COAUTHOR_ACTIONS`. `text` is the payload handed to
 * `/ai/coauthor`; it may be empty while the user is still typing.
 *
 * The parser is pure so we can unit-test every edge case (case folding,
 * trailing whitespace, partial input, unknown actions) without spinning up
 * `cmdk` or the rest of the palette.
 */
export interface AiSlashCommand {
    action: CoauthorAction;
    text: string;
}
/**
 * Returns the matched `{ action, text }` when `input` is a complete
 * slash command (`/ai rewrite ...`), or `null` otherwise. `text` may be
 * empty when the user has typed `/ai rewrite` with no payload yet.
 */
export declare function parseAiSlashCommand(input: string): AiSlashCommand | null;
/**
 * Returns true when `input` looks like the start of an AI slash command
 * — even when the action isn't typed yet (`/`, `/a`, `/ai`, `/ai re`).
 * The palette uses this to switch into "AI mode" (hide nav results,
 * show the four action suggestions).
 */
export declare function isAiSlashCommandInput(input: string): boolean;
/**
 * Ordered list of actions to show in AI mode. When the user has typed a
 * valid command, that command's action is hoisted to the top so it gets
 * the default keyboard focus (and Enter runs it).
 */
export declare function orderedAiActions(input: string): CoauthorAction[];
//# sourceMappingURL=slash-command.d.ts.map