export interface JsonTreeContextValue { /** Whether the node at `path`/`depth` is open right now. */ readonly isOpen: (path: string, depth: number) => boolean; /** Records the reader's explicit toggle of one node. */ readonly setOpen: (path: string, open: boolean) => void; /** Copies a value's JSON, returning whether the write succeeded. */ readonly copy: (value: unknown) => Promise; readonly pageSize: number; } export declare const JsonTreeContext: import("react").Context; /** The shared tree state; a subcomponent outside a `JsonTree` is a wiring error. */ export declare function useJsonTreeContext(): JsonTreeContextValue; //# sourceMappingURL=json-tree-context.d.ts.map