import { IPosition } from "monaco-editor"; import { MessageSystemType } from "../message-system/index.js"; import { MessageSystemServiceAction, MessageSystemServiceActionConfig } from "./message-system.service-action.js"; export interface MonacoAdapterActionCallbackConfig { /** * Retrieve the Monaco Model value */ getMonacoModelValue: () => string[]; /** * Update the Monaco Model value */ updateMonacoModelValue: (value: string[], isExternal: boolean) => void; /** * Update the Monaco editors position */ updateMonacoModelPosition: (dictionaryId?: string) => IPosition; /** * The message system type to run on */ messageSystemType?: MessageSystemType; } export interface MonacoAdapterActionOptions { /** * The message system type to run on */ messageSystemType?: MessageSystemType; } /** * Actions for the monaco adapter */ export declare class MonacoAdapterAction extends MessageSystemServiceAction { private getMonacoModelValue; private updateMonacoModelValue; private updateMonacoModelPosition; private messageSystemType; constructor(config: MessageSystemServiceActionConfig); /** * Invokes the action */ invoke: () => void; /** * Retrieve callbacks from parent adapter */ addConfig(config: MonacoAdapterActionCallbackConfig): void; /** * Retrieve the message system type for this action */ getMessageSystemType(): MessageSystemType; matches: (type: MessageSystemType) => boolean; }