Files
HRM-System/node_modules/react-grab/dist/index.d.ts

33 lines
2.5 KiB
TypeScript

/**
* @license MIT
*
* Copyright (c) 2025 Aiden Bai
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { A as Rect, C as PluginConfig, D as ReactGrabAPI, E as PromptModeContext, F as ToolbarState, M as SettableOptions, N as SourceInfo, P as Theme, S as Plugin, T as Position, _ as ElementSelectedEventDetail, a as ActionContext, b as Options, c as AgentContext, d as DeepPartial, f as DragRect, g as ElementLabelVariant, h as ElementLabelContext, j as SelectedElementPayload, k as ReactGrabState, l as ContextMenuAction, n as isInstrumentationActive, o as ActionContextHooks, s as ActivationMode, u as ContextMenuActionContext, v as GrabbedBox, w as PluginHooks, x as OverlayBounds, y as OpenFileActionHooks } from "./copy-content-CcSwO8vJ.js";
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-Cd-ADR9Q.js";
import { i as ReactGrabError, n as OpenFileError, r as PluginSetupError, t as FreezeError } from "./errors-BEgowzRA.js";
//#region src/core/plugins/comment.d.ts
declare const commentPlugin: Plugin;
//#endregion
//#region src/core/plugins/open.d.ts
declare const openPlugin: Plugin;
//#endregion
//#region src/global-api.d.ts
declare const getGlobalApi: () => ReactGrabAPI | null;
declare const setGlobalApi: (api: ReactGrabAPI | null) => void;
declare const registerPlugin: (plugin: Plugin) => void;
declare const unregisterPlugin: (name: string) => void;
//#endregion
//#region src/index.d.ts
declare global {
interface Window {
__REACT_GRAB__?: ReactGrabAPI;
__REACT_GRAB_DISABLED__?: boolean;
}
}
//#endregion
export { type ActionContext, type ActionContextHooks, type ActivationMode, type AgentContext, type ContextMenuAction, type ContextMenuActionContext, DEFAULT_THEME, type DeepPartial, type DragRect, type ElementLabelContext, type ElementLabelVariant, type ElementSelectedEventDetail, FreezeError, type GrabbedBox, type OpenFileActionHooks, OpenFileError, type Options, type OverlayBounds, type Plugin, type PluginConfig, type PluginHooks, PluginSetupError, type Position, type PromptModeContext, type ReactGrabAPI, ReactGrabError, type ReactGrabState, type Rect, type SelectedElementPayload, type SettableOptions, type SourceInfo, type Theme, type ToolbarState, commentPlugin, formatElementInfo, generateSnippet, getGlobalApi, getStack, init, isInstrumentationActive, openPlugin, registerPlugin, setGlobalApi, unregisterPlugin };