import type { FlowStore, Viewport, NodeBase, EdgeBase, XYPosition } from './types.ts'; import type { Signal, Memo } from '@barefootjs/client/runtime'; /** * Access the flow store from any child component. * Must be called within a component rendered inside a Flow. */ export declare function useFlow(): FlowStore; /** * Access the current viewport (reactive getter). */ export declare function useViewport(): Signal[0]; /** * Access the nodes array (reactive getter). */ export declare function useNodes(): Signal[0]; /** * Access the edges array (reactive getter). */ export declare function useEdges(): Signal[0]; /** * Access whether nodes have been initialized (all measured). */ export declare function useNodesInitialized(): Memo; /** * Select derived state from the flow store. * Similar to React Flow's useStore(selector). */ export declare function useStore(selector: (store: FlowStore) => T): Memo; /** * Convert a screen position to flow coordinates. * Accounts for viewport transform (pan/zoom) and container offset. */ export declare function screenToFlowPosition(position: XYPosition): XYPosition; //# sourceMappingURL=hooks.d.ts.map