import { IMessage } from "@tandem/mesh"; import { CoreEvent } from "@tandem/common/messages"; import { ISyntheticObject } from "@tandem/sandbox"; import { LogLevel } from "@tandem/common"; import { Workspace, IWorkspaceTool, IRouterState } from "@tandem/editor/browser/stores"; export declare class MouseAction extends CoreEvent { readonly originalEvent: MouseEvent; static readonly CANVAS_MOUSE_DOWN: string; static readonly SELECTION_DOUBLE_CLICK: string; constructor(type: any, originalEvent: MouseEvent); preventDefault(): void; } export declare class AlertMessage extends CoreEvent { readonly level: LogLevel; readonly text: string; static readonly ALERT: string; constructor(type: string, level: LogLevel, text: string); static createWarningMessage(text: string): AlertMessage; static createErrorMessage(text: string): AlertMessage; } export declare class ShowPromptRequest extends CoreEvent { readonly render: (props: any) => any; readonly closeable: boolean; readonly buttons: any; static readonly PROMPT: string; constructor(type: string, render: (props: any) => any, closeable?: boolean, buttons?: any); } export declare class KeyboardAction extends CoreEvent { readonly originalEvent: KeyboardEvent; static readonly CANVAS_KEY_DOWN: string; readonly keyCode: number; readonly which: number; constructor(type: any, originalEvent: KeyboardEvent); preventDefault(): void; } export declare class SelectRequest extends CoreEvent { static readonly SELECT: string; items: Array; keepPreviousSelection: boolean; toggle: boolean; constructor(items?: any, keepPreviousSelection?: boolean, toggle?: boolean); } export declare class RedirectRequest implements IMessage { readonly routeNameOrPath: string; params: any; readonly query: any; static readonly REDIRECT: string; readonly type: string; constructor(routeNameOrPath: string, params?: any, query?: any); static fromURL(value: string): RedirectRequest; } export declare class DidRedirectMessage implements IMessage { readonly pathname: string; readonly state: IRouterState; static readonly DID_REDIRECT: string; readonly type: string; constructor(pathname: string, state: IRouterState); } export declare class OpenContextMenuRequest extends CoreEvent { readonly name: string; readonly x: number; readonly y: number; static readonly OPEN_CONTEXT_MENU: string; constructor(name: string, x: number, y: number); } export declare class OpenLinkInNewWindowRequest extends CoreEvent { static readonly OPEN_LINK_IN_NEW_WINDOW: string; constructor(); } export declare class OpenLinkInThisWindowRequest extends CoreEvent { static readonly OPEN_LINK_IN_THIS_WINDOW: string; constructor(); } export declare function createWorkspaceRedirectRequest(projectId: string): RedirectRequest; export declare class SelectionChangeEvent extends CoreEvent { readonly items: any[]; static readonly SELECTION_CHANGE: string; constructor(items?: any[]); } export declare class SelectAllRequest extends CoreEvent { static readonly SELECT_ALL: string; constructor(); } export declare class ToggleSelectRequest extends SelectRequest { constructor(items?: any, keepPreviousSelection?: boolean); } export declare class ZoomRequest extends CoreEvent { readonly delta: number; readonly ease: boolean; readonly round: boolean; static readonly ZOOM: string; constructor(delta: number, ease?: boolean, round?: boolean); } export declare class ZoomInRequest extends CoreEvent { static readonly ZOOM_IN: string; constructor(); } export declare class ToggleSettingRequest extends CoreEvent { readonly settingName: string; static readonly TOGGLE_SETTING: string; constructor(settingName: string); } export declare function createToggleSettingRequestClass(settingName: string): { new (): ToggleSettingRequest; }; export declare class ToggleStageToolsRequest extends CoreEvent { static readonly TOGGLE_STAGE_TOOLS: string; constructor(); } export declare class ZoomOutRequest extends CoreEvent { static readonly ZOOM_OUT: string; constructor(); } export declare class SetZoomRequest extends CoreEvent { readonly value: number; readonly ease: boolean; static readonly SET_ZOOM: string; constructor(value: number, ease?: boolean); } export declare class PasteRequest extends CoreEvent { readonly item: DataTransferItem; constructor(item: DataTransferItem); static getRequestType(item: DataTransferItem | string): string; } export declare class SetToolRequest extends CoreEvent { readonly toolFactory: { create(workspace: Workspace): IWorkspaceTool; }; static readonly SET_TOOL: string; constructor(toolFactory: { create(workspace: Workspace): IWorkspaceTool; }); } export declare class AddSyntheticObjectRequest implements IMessage { readonly item: ISyntheticObject; static readonly ADD_SYNTHETIC_OBJECT: string; readonly type: string; constructor(item: ISyntheticObject); } export declare class KeyCommandEvent extends CoreEvent { readonly combo: string; static readonly KEY_COMMAND: string; constructor(combo: string); } export declare class RemoveSelectionRequest extends CoreEvent { static readonly REMOVE_SELECTION: string; constructor(); } export * from "../../common/messages";