import * as _flowgram_ai_core from '@flowgram.ai/core'; import { ContributionProvider, CommandRegistry, Command } from '@flowgram.ai/core'; /** * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates * SPDX-License-Identifier: MIT */ interface ShortcutsHandler { commandId: string; commandDetail?: Omit; shortcuts: string[]; isEnabled?: (...args: any[]) => boolean; execute: (...args: any[]) => void; } declare const ShortcutsContribution: unique symbol; interface ShortcutsContribution { registerShortcuts: (registry: ShortcutsRegistry) => void; } declare class ShortcutsRegistry { protected contribs: ContributionProvider; protected commandRegistry: CommandRegistry; shortcutsHandlers: ShortcutsHandler[]; addHandlers(...handlers: ShortcutsHandler[]): void; addHandlersIfNotFound(...handlers: ShortcutsHandler[]): void; removeHandler(commandId: string): void; has(commandId: string): boolean; protected init(): void; } /** * @param opts * * createShortcutsPlugin({ * registerShortcuts(registry) { * } * }) */ declare const createShortcutsPlugin: _flowgram_ai_core.PluginCreator; export { ShortcutsContribution, type ShortcutsHandler, ShortcutsRegistry, createShortcutsPlugin };