import { Component, PartialProps, ComponentEvent, UpdateComponentOptionDefaults } from './components/types'; import { VariableTypes, UpdateVariableOptions, Variable } from './variables/types'; export interface Shortcut { readonly id: string; readonly scope: string | undefined; readonly name: string | null | undefined; readonly state: T; readonly component: Component | undefined; remove: () => void; setProperties: (properties: Record>) => Shortcut; } export interface VariableShortcut extends Shortcut { readonly variable: Variable | undefined; get: () => V | undefined; set: (value: V, func?: string | undefined, options?: Partial) => VariableShortcut; } export interface ComponentShortcut extends Shortcut { readonly component: Component | undefined; set: (properties: Record>, events?: Record>, options?: Partial) => ComponentShortcut; dispatchEvent(name: string, values?: VariableTypes[]): void; }