import * as ha from "hyperapp"; import { Edge, Graph, NodeArg, NodeMetadata, NodysseusNode } from "../types.js"; import * as pz from "panzoom"; import { d3Link, d3NodeNode, HyperappState, Levels, NodysseusSimulation, Property, Vector2 } from "./types.js"; import { Compartment, StateEffectType, StateField } from "@codemirror/state"; import { EditorView } from "@codemirror/view"; import { NodysseusRuntime, AnyNode } from "src/dependency-tree/dependency-tree.js"; export declare const EXAMPLES: string[]; export declare const pzobj: { instance: false | pz.PanZoom; lastpanzoom: false | number; animationframe: false | number; centered: false | { nodeId: string; position: Vector2; initialOffset: Vector2; }; effect: (dispatch: any, payload: any) => void; getTransform: () => pz.Transform; init: (dispatch: any, sub_payload: any) => () => void; }; export declare const isNodysseusError: (e: Error) => string | boolean; export declare const update_graph_list: (graph_id: any) => void; type NodePositionArgs = { position: Vector2; simulation: NodysseusSimulation; }; export declare const setRootNodeXNodeY: ({ position, simulation, }: NodePositionArgs) => void; export declare const SetSelectedPositionStyleEffect: (_: any, payload: NodePositionArgs) => void; export declare const graphFromExample: (id: string) => Promise | Graph; export declare const ChangeEditingGraphId: ha.Effecter; export declare const CreateNode: ha.Action; export declare const DeleteNode: (state: any, { node_id }: { node_id: any; }) => any[]; export declare const ExpandContract: (state: any, { node_id }: { node_id: any; }) => any[]; export declare const CreateRef: (state: any, { node }: { node: any; }) => any[]; export declare const Copy: (state: any, { cut, as }: { cut: any; as: any; }) => any; export declare const Paste: (state: any) => any[]; export declare const selectNodeEffect: ha.Effecter; export declare const SelectNode: ha.Action; export declare const CustomDOMEvent: (_: any, payload: any) => boolean; export declare const FocusEffect: ha.Effecter; export declare const SaveGraph: (dispatch: any, payload: any) => void; export declare const UpdateResultDisplay: (state: any, resel: any) => any; export declare const UpdateNodeMetadata: ha.Effecter; export declare const UpdateNodeEffect: ha.Effecter; export declare const UpdateNode: ha.Action; export declare const UpdateEdge: ha.Action; export declare const keydownSubscription: (dispatch: any, options: any) => () => void; export declare const refresh_graph: ha.Effecter; export declare const result_subscription: (dispatch: any, { editingGraphId, displayGraphId, norun }: { editingGraphId: any; displayGraphId: any; norun: any; }) => () => void; export declare const graph_subscription: (dispatch: ha.Dispatch, props: any) => () => void; export declare const select_node_subscription: (dispatch: any, props: any) => () => void; export declare const UpdateSelectedNodeMetadataEffect: (dispatch: any, { graph, id, cachedMetadata, code_editor, code_editor_nodeid_field, code_editor_nodeid, codeEditorExtensions, }: { graph: Graph; id: string; cachedMetadata: Record; code_editor: EditorView; code_editor_nodeid: StateEffectType; code_editor_nodeid_field: StateField; codeEditorExtensions: Compartment; }) => void; export declare const setCodeEditorText: ({ codeEditor, codeEditorNodeId, codeEditorNodeIdField, codeEditorExtensions, metadata, node, }: { codeEditor: EditorView; codeEditorNodeId: StateEffectType; codeEditorNodeIdField: StateField; codeEditorExtensions?: Compartment; metadata: NodeMetadata; node: NodysseusNode; }) => void; export declare const watchNode: (runtime: NodysseusRuntime, node: AnyNode, fn: (t: T) => void) => Promise; export declare const selectedGraphOutputs: (graph: Graph, displayFn: (d: any) => void) => void; export declare const watchNodeOutputs: (runtime: NodysseusRuntime, graph: string, selected: string, watchId: string, fns: Partial void>>) => void; export declare const infoWindowSubscription: (dispatch: ha.Dispatch, { selected, graph, info_display_dispatch, code_editor, code_editor_nodeid, code_editor_nodeid_field, codeEditorExtensions, cachedMetadata, norun, }: { selected: Array; graph: string; info_display_dispatch: Function | undefined; code_editor: any; code_editor_nodeid: StateEffectType; code_editor_nodeid_field: StateField; codeEditorExtensions: any; cachedMetadata: Record; norun: boolean; }) => () => void; export declare const listen: (type: any, action: any) => ha.Subscription; export declare const listenToEvent: (dispatch: any, props: any) => (() => void); export declare const findViewBox: (nodes: Array, links: Array, selected: string, node_el_width: number, htmlid: string, dimensions: { x: number; y: number; }) => { nodes_box_dimensions: { x: number; y: number; }; center: { x: number; y: number; }; }; export declare const calculateLevels: (nodes: Array, links: Array, graph: Graph, selected: string) => Levels; export declare const CalculateSelectedNodeArgsEffect: ha.Effecter; }>; export declare const node_args: (nolib: Record, graph: Graph, node_id: string, cachedMetadata?: Record) => { nodeArgs: Array; nodeOutArgs?: Array; } | Promise<{ nodeArgs: Array; nodeOutArgs?: Array; }>; export declare const save_graph: (graph: any) => void; export declare const graphEdgeOut: (graph: Graph, node: string) => Edge; export declare const graphEdgesIn: (graph: Graph, node: string) => Edge[]; export declare const HTMLView: ({ stateSignal }: { stateSignal: any; }) => import("preact").VNode; export declare const HTMLComponent: ({ dom_type, props, children, text, ref, }: { dom_type: string; props: {}; children: Array; text?: string; ref?: (ref: { ref: HTMLElement; }) => void; }) => any; export declare const embeddedHTMLView: (htmlId: any) => (evt: any, payload: any) => void; export declare const hlibLib: import("../types.js").Lib; export declare const hlib: Record; export {};