import { QuickCommand } from './types'; export declare const quickCommandsFileFormat = "tabby-windy-quick-commands"; export declare const quickCommandsFileVersion = 1; export type QuickCommandsFileKind = 'commands' | 'config'; export interface ImportConflict { command: QuickCommand; reason: string; scope: 'existing' | 'file'; } export interface ImportPreview { commands: QuickCommand[]; added: QuickCommand[]; overwritten: QuickCommand[]; conflicts: ImportConflict[]; customCategories: string[]; categoryOrder: string[]; sourceVersion: number; } export interface ParsedImportPayload { kind: QuickCommandsFileKind; commands: Array>; customCategories: string[]; categoryOrder: string[]; version: number; config?: Record; } export interface SanitizedAutomationReferences { commands: QuickCommand[]; clearedReferences: number; } export declare function normalizeCommandText(command: string): string; export declare function buildTerminalPayload(command: string, autoEnter: boolean): string; export declare function resolveSelectedCommand(commands: QuickCommand[], selectedCommandId: string | null): QuickCommand | null; export declare const quickCommandsSchema: { $schema: string; title: string; type: string; required: string[]; properties: { format: { const: string; }; version: { const: number; }; kind: { enum: string[]; }; exportedAt: { type: string; }; config: { type: string; }; customCategories: { type: string; items: { type: string; }; }; categoryOrder: { type: string; items: { type: string; }; }; commands: { type: string; items: { type: string; required: string[]; properties: { id: { type: string; }; name: { type: string; }; description: { type: string; }; category: { type: string; }; command: { type: string; }; autoEnter: { type: string; }; lineDelay: { type: string; minimum: number; }; lineDelays: { type: string; items: { type: string; minimum: number; }; }; linePauses: { type: string; items: { type: string; }; }; shortcut: { type: string; }; favorite: { type: string; }; pinned: { type: string; }; automationRules: { type: string; items: { type: string; properties: { id: { type: string; }; name: { type: string; }; enabled: { type: string; }; collapsed: { type: string; }; triggerLine: { type: string; minimum: number; }; matchMode: { enum: string[]; }; waitFor: { type: string; }; waitForLogic: { enum: string[]; }; timeoutMs: { type: string; minimum: number; }; errorPattern: { type: string; }; errorPatternLogic: { enum: string[]; }; matchFlow: { enum: string[]; }; onMatchAction: { enum: string[]; }; onMatchCommand: { type: string; }; onMatchAutoEnter: { type: string; }; onMatchCommandId: { type: string; }; onErrorAction: { enum: string[]; }; onErrorCommand: { type: string; }; onErrorAutoEnter: { type: string; }; onErrorCommandId: { type: string; }; onTimeoutCommand: { type: string; }; onTimeoutAutoEnter: { type: string; }; onTimeoutCommandId: { type: string; }; timeoutAction: { enum: string[]; }; }; }; }; }; }; }; }; }; export declare function parseImportPayload(text: string): ParsedImportPayload; export declare function normalizeCommandConfig(command: Partial, createId: () => string): QuickCommand; export declare function buildImportPreview(existing: QuickCommand[], imported: QuickCommand[], metadata?: Pick): ImportPreview; export declare function applyImportPreview(existing: QuickCommand[], preview: ImportPreview, mode: 'merge' | 'replace'): QuickCommand[]; export declare function sanitizeAutomationReferences(commands: QuickCommand[]): SanitizedAutomationReferences; export declare function validateImportedCommands(commands: unknown[]): asserts commands is Array>;