import * as Immutable from 'immutable'; import { BlockMap, ContentBlock } from 'draft-js'; export declare function hasChildren(blockMap: BlockMap, blockKey: string): boolean; export declare function adjustHasChildren(blockMap: BlockMap, blockKey: string): BlockMap; export declare function getFirstChild(blockMap: BlockMap, blockKey: string): ContentBlock | undefined; export declare function getChildren(blockMap: BlockMap, blockKey: string): Immutable.Iterable; export declare function getNextSibling(blockMap: BlockMap, blockKey: string): ContentBlock; export declare function getPreviousSibling(blockMap: BlockMap, blockKey: string): ContentBlock; /** * It returns block with all it's descendants, not just it's children * Everything inside tree with the block as the root node * @param blockMap * @param blockKey */ export declare function getBlocksWithItsDescendants(blockMap: BlockMap, blockKey: string): Immutable.Iterable;