/** * SPDX-FileCopyrightText: © 2021 Liferay, Inc. * SPDX-License-Identifier: BSD-3-Clause */ import { Key } from 'react'; /** * Cursors are the reference to the unique id of the items in the tree * referring to their parent. Cursor creates the safe address of an item * in the tree for immutability operations. */ export declare type Cursor = Array; export declare type LayoutInfo = { children: Set; /** * Lazy Child means that the current Node has children but they were not * created because they are not visible in the DOM. */ lazyChild: boolean; loc: Array; cursor: Cursor; parentKey?: Key; }; export declare type Layout = { createPartialLayoutItem: (key: Key, lazy: boolean, loc: Array, cursor: Cursor, parentKey?: Key) => () => void; layoutKeys: React.MutableRefObject>; patchItem: (key: Key, cursor: Cursor, loc: Array) => void; }; export declare function useLayout(): Layout;