Files
oh-my-opencode/dist/hooks/auto-slash-command/detector.d.ts
T
2026-03-14 04:56:50 +00:00

14 lines
575 B
TypeScript

import type { ParsedSlashCommand } from "./types";
export declare function removeCodeBlocks(text: string): string;
export declare function parseSlashCommand(text: string): ParsedSlashCommand | null;
export declare function isExcludedCommand(command: string): boolean;
export declare function detectSlashCommand(text: string): ParsedSlashCommand | null;
export declare function extractPromptText(parts: Array<{
type: string;
text?: string;
}>): string;
export declare function findSlashCommandPartIndex(parts: Array<{
type: string;
text?: string;
}>): number;