/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Block } from '../block.js'; import { UiBase } from './events_ui_base.js'; import { Workspace } from '../workspace.js'; import { AbstractEventJson } from './events_abstract.js'; /** * Class for a ctrl+click event. */ export declare class CtrlClick extends UiBase { /** The ID of the block that was clicked, if a block was clicked. */ blockId?: string; /** * The type of element targeted by this ctrl+click event. */ targetType?: CtrlClickTarget; type: string; constructor(opt_block?: Block | null, opt_workspaceId?: string | null, opt_targetType?: CtrlClickTarget); /** * Encode the event as JSON. * * @returns JSON representation. */ toJson(): CtrlClickJson; /** * Decode the JSON event. * * @param {!object} json JSON representation. */ static fromJson(json: CtrlClickJson, workspace: Workspace, event?: any): CtrlClick; } export declare enum CtrlClickTarget { BLOCK = "block", WORKSPACE = "workspace", ZOOM_CONTROLS = "zoom_controls" } export interface CtrlClickJson extends AbstractEventJson { targetType: CtrlClickTarget; blockId?: string; } //# sourceMappingURL=events_ctrl_click.d.ts.map