import type { Writable, Readable } from 'svelte/store'; import type { AnchorKey, CSSColorString, CustomWritable, Node, XYPair } from './'; import type { generateOutput } from '../utils'; import type { ComponentType } from 'svelte'; export interface Anchor { id: AnchorKey; position: Readable<{ x: number; y: number; }>; offset: Writable; connected: Writable>; dynamic: Writable; edge: ComponentType | null; direction: Writable; rotation: Readable; recalculatePosition: () => void; type: InputType; mounted: Writable; inputKey: string | number | null; moving: Readable; edgeColor: Writable | CustomWritable | Readable; store: Writable | Readable>> | ReturnType | null; node: Node; } export type Direction = 'north' | 'south' | 'east' | 'west' | 'self'; export type InputType = 'input' | 'output' | null;