import type { Universe } from '@ephox/boss'; import { Optional } from '@ephox/katamari'; export interface LeftRight { readonly left: E; readonly right: E; } export interface BrokenPathSplits { readonly first: E; readonly second: E; } export interface BrokenPath { readonly first: E; readonly second: Optional; readonly splits: BrokenPathSplits[]; } /** * Clone parent to the RIGHT and move everything after child in the parent element into * a clone of the parent (placed after parent). */ declare const breakToRight: (universe: Universe, parent: E, child: E) => Optional>; /** * Clone parent to the LEFT and move everything before and including child into * the a clone of the parent (placed before parent) */ declare const breakToLeft: (universe: Universe, parent: E, child: E) => Optional>; declare const breakPath: (universe: Universe, item: E, isTop: (e: E) => boolean, breaker: (universe: Universe, parent: E, child: E) => Optional>) => BrokenPath; export { breakToLeft, breakToRight, breakPath }; //# sourceMappingURL=Breaker.d.ts.map