import { InternalNode, ReactFlowInstance, ReactFlowState } from '@xyflow/react'; import { Types } from '../likec4diagram/types'; export type XYFlowInstance = ReactFlowInstance; export declare function useXYFlow(): XYFlowInstance; export type XYStoreState = ReactFlowState; export declare function useXYStore(selector: (state: XYStoreState) => StateSlice, equalityFn?: (a: NoInfer, b: NoInfer) => boolean): StateSlice; export declare function useXYStoreApi(): XYStoreApi; export type XYStoreApi = { getState: () => XYStoreState; setState: (state: Partial | ((state: XYStoreState) => Partial)) => void; subscribe: (listener: (state: XYStoreState, prevState: XYStoreState) => void) => () => void; }; export type XYInternalNode = InternalNode; export declare function useXYInternalNode(id: string): XYInternalNode | undefined; /** * Returns the current zoom level of the flow. * @param precision The number of decimal places to round to, defaults to 2 (i.e. 1.23) * @returns The current zoom level of the flow. */ export declare function useCurrentZoom(precision?: number): number; export declare function useCurrentZoomAtLeast(minZoom: number): boolean; export declare function useIsZoomTooSmall(): boolean;