import type { ReadonlyContentModelBlock, ReadonlyContentModelBlockGroup, ReadonlyContentModelSegment } from 'roosterjs-content-model-types'; /** * @internal */ export declare type BlockAndPath = { /** * The sibling block */ block: ReadonlyContentModelBlock; /** * Path of this sibling block */ path: ReadonlyContentModelBlockGroup[]; /** * If the input block is under a general segment, it is possible there are sibling segments under the same paragraph. * Use this property to return the sibling sibling under the same paragraph */ siblingSegment?: ReadonlyContentModelSegment; }; /** * @internal */ export declare type ReadonlyBlockAndPath = { /** * The sibling block */ block: ReadonlyContentModelBlock; /** * Path of this sibling block */ path: ReadonlyContentModelBlockGroup[]; /** * If the input block is under a general segment, it is possible there are sibling segments under the same paragraph. * Use this property to return the sibling sibling under the same paragraph */ siblingSegment?: ReadonlyContentModelSegment; }; /** * @internal */ export declare function getLeafSiblingBlock(path: ReadonlyContentModelBlockGroup[], block: ReadonlyContentModelBlock, isNext: boolean): BlockAndPath | null; /** * @internal (Readonly) */ export declare function getLeafSiblingBlock(path: ReadonlyContentModelBlockGroup[], block: ReadonlyContentModelBlock, isNext: boolean): ReadonlyBlockAndPath | null;