import { ValueTypeOf } from '@elaraai/east'; import { DiffBindingType } from '@elaraai/e3-ui/internal'; import { Ontology } from './types.js'; type DiffBindingValue = ValueTypeOf; export interface UseBindingOntologyResult { /** Current ontology value (buffered if staged, otherwise server). `null` * if the binding hasn't run yet (no registered types) or the source * dataset has no value. */ ontology: Ontology | null; /** True when there is an in-flight staged change. Always false for direct * bindings — the handle writes through, never buffers. */ pending: boolean; /** Replace the bound value. In staged mode buffers the write; in direct * mode writes through immediately. */ mutate: (next: Ontology) => void; /** Resolve the in-flight change. */ commit: () => Promise; /** Drop the in-flight change. */ discard: () => void; } /** * Resolve a {@link DiffBindingType} value into a live ontology + the * commit / discard / mutate handlers, delegating to the shared bind runtime. * * Returns `ontology: null` if the binding hasn't run yet (types not * registered) or no source value is present. */ export declare function useBindingOntology(binding: DiffBindingValue): UseBindingOntologyResult; export {}; //# sourceMappingURL=bind-runtime.d.ts.map