import { LayoutedElementView, Any } from '@likec4/core'; import { AdhocEditorActorRef, AdhocEditorSnapshot } from './state/actor'; import { Provider } from 'react'; export declare const AdhocEditorActorContextProvider: Provider; export declare function useAdhocEditorActor(): AdhocEditorActorRef; export declare function useAdhocEditor(): { open: () => void; close: () => void; toggleRule: (ruleId: string) => void; }; export declare function useAdhocEditorSnapshot(selector: (state: AdhocEditorSnapshot) => T, compare?: (a: NoInfer, b: NoInfer) => boolean): T; export declare function useAdhocView(): LayoutedElementView< Any>; export declare function selectFromSnapshot(selector: (state: AdhocEditorSnapshot) => T): (state: AdhocEditorSnapshot) => T; export declare function selectFromContext(selector: (state: AdhocEditorSnapshot['context']) => T): (state: AdhocEditorSnapshot) => T;