/** * Test if a node contains another node * @param container The container node * @param contained The node to check if it is inside container * @param treatSameNodeAsContain When container and contained are the same node, * return true if this param is set to true, otherwise return false. Default value is false * @returns True if contained is inside container, or they are the same node when treatSameNodeAsContain is true. * Otherwise false. */ export default function contains(container: Node | null | undefined, contained: Node | null | undefined, treatSameNodeAsContain?: boolean): boolean; /** * Test if a node contains a given range * @param container The container node * @param contained The range to check if it is inside container * @returns True if contained is inside container, otherwise false */ export default function contains(container: Node | null | undefined, contained: Range | null | undefined): boolean;