import * as Adaptive from "adaptivecards"; import * as Designer from "./card-designer-surface"; import { HostContainer } from "./containers/host-container"; import { Toolbar } from "./toolbar"; import { CustomPaletteItem } from "./tool-palette"; import { Toolbox } from "./tool-box"; import { FieldDefinition } from "./data"; import { DeviceEmulation } from "./device-emulation"; export declare class CardDesigner extends Designer.DesignContext { private static internalProcessMarkdown; static onProcessMarkdown: (text: string, result: Adaptive.IMarkdownProcessingResult) => void; private static MAX_UNDO_STACK_SIZE; private _isAttached; private _cardEditor; private _sampleDataEditor; private _sampleHostDataEditor; private _hostContainers; private _deviceEmulations; private _isMonacoEditorLoaded; private _designerSurface; private _designerHostElement; private _draggedPaletteItem; private _draggedElement; private _currentMousePosition; private _hostContainer; private _deviceEmulation; private _undoStack; private _undoStackIndex; private _startDragPayload; private _toolPaletteToolbox; private _propertySheetToolbox; private _propertySheetCard; private _treeViewToolbox; private _jsonEditorsPanel; private _cardEditorToolbox; private _sampleDataEditorToolbox; private _sampleHostDataEditorToolbox; private _dataToolbox; private _assetPath; private _dataStructure; private _hostDataStructure; private _sampleData; private _sampleHostData; private _bindingPreviewMode; private _customPeletteItems; private _sampleCatalogue; private togglePreview; private buildTreeView; private buildDataExplorer; private buildPropertySheet; private addPaletteItem; private buildPalette; private endDrag; private renderErrorPaneElement; private recreateDesignerSurface; private activeHostContainerChanged; private activeDeviceEmulationChanged; private targetVersionChanged; private updateToolboxLayout; private updateJsonEditorsLayout; private updateFullLayout; private _jsonUpdateTimer; private _cardUpdateTimer; private _updateLayoutTimer; private _cardPreventUpdate; private _jsonPreventUpdate; private cardPayloadChanged; private _cardEditorUpdateCounter; private beginCardEditorUpdate; private endCardEditorUpdate; private setCardPayload; private setSampleDataPayload; private setSampleHostDataPayload; private updateJsonFromCard; private scheduleUpdateJsonFromCard; private getCurrentCardEditorPayload; private getCurrentSampleDataEditorPayload; private getCurrentSampleHostDataEditorPayload; private updateCardFromJson; private scheduleUpdateCardFromJson; private _isEdgeHTML?; private isEdgeHTML; private scheduleLayoutUpdate; private _targetVersion; private _fullScreenHandler; private _fullScreenButton; private _hostContainerChoicePicker; private _deviceEmulationChoicePicker; private _versionChoicePicker; private _undoButton; private _redoButton; private _newCardButton; private _copyJSONButton; private _togglePreviewButton; private _helpButton; private _preventRecursiveSetTargetVersion; private _containerSizeChoicePicker; private _containerThemeChoicePicker; private prepareToolbar; private launchJsonSchemaPopup; private launchImagePopup; private onResize; private updateSampleData; private updateSampleHostData; private updateHostDataSizeProperty; private updateHostDataThemeProperty; private updateContainerSizeChoicePicker; private updateContainerThemeChoicePicker; private updateToolbar; private addToUndoStack; private handlePointerUp; private handlePointerMove; readonly toolbar: Toolbar; lockDataStructure: boolean; constructor(hostContainers?: Array, deviceEmulations?: Array); monacoModuleLoaded(monaco?: any): void; attachTo(root: HTMLElement): void; createAndAddSampleHostDataEditorToolbox(): void; clearUndoStack(): void; setCard(payload: object): void; getCard(): object; getBoundCard(): object; undo(): void; redo(): void; showHelp(): void; newCard(): void; onCardPayloadChanged: (designer: CardDesigner) => void; onCardValidated: (designer: CardDesigner, validationLogEntries: Adaptive.IValidationEvent[]) => void; onActiveHostContainerChanged: (designer: CardDesigner) => void; onTargetVersionChanged: (designer: CardDesigner) => void; get targetVersion(): Adaptive.Version; set targetVersion(value: Adaptive.Version); get dataStructure(): FieldDefinition; set dataStructure(value: FieldDefinition); get hostDataStructure(): FieldDefinition; set hostDataStructure(value: FieldDefinition); get sampleData(): any; set sampleData(value: any); get sampleHostData(): any; set sampleHostData(value: any); get bindingPreviewMode(): Designer.BindingPreviewMode; set bindingPreviewMode(value: Designer.BindingPreviewMode); get hostContainer(): HostContainer; set hostContainer(value: HostContainer); get deviceEmulation(): DeviceEmulation; set deviceEmulation(value: DeviceEmulation); get canUndo(): boolean; get canRedo(): boolean; get designerSurface(): Designer.CardDesignerSurface; get treeViewToolbox(): Toolbox; get propertySheetToolbox(): Toolbox; get jsonEditorToolbox(): Toolbox; get toolPaletteToolbox(): Toolbox; get dataToolbox(): Toolbox; get assetPath(): string; set assetPath(value: string); get customPaletteItems(): CustomPaletteItem[]; set customPaletteItems(value: CustomPaletteItem[]); get sampleCatalogueUrl(): string; set sampleCatalogueUrl(value: string); } export declare module CardDesigner { class ToolbarCommands { static readonly HostAppPicker = "__hostAppPicker"; static readonly DeviceEmulationPicker = "__deviceEmulationPicker"; static readonly VersionPicker = "__versionPicker"; static readonly Undo = "__undoButton"; static readonly Redo = "__redoButton"; static readonly NewCard = "__newCardButton"; static readonly CopyJSON = "__copyJsonButton"; static readonly TogglePreview = "__togglePreviewButton"; static readonly Help = "__helpButton"; static readonly ContainerSizePicker = "__containerSizePicker"; static readonly ContainerThemePicker = "__containerThemePicker"; } }