import type { NodePosition } from 'roosterjs-editor-types'; /** * Apply style using a styler function to the given container node in the given range * @param container The container node to apply style to * @param styler The styler function * @param fromPosition From position * @param toPosition To position */ export default function applyTextStyle(container: Node, styler: (node: HTMLElement, isInnerNode?: boolean) => any, from?: NodePosition, to?: NodePosition): void;