import type { _DOMDocumentFragment } from "./DOMDocumentFragment.js";
import type { _DOMNode } from "./DOMNode.js";
import type { _DOMObject } from "./DOMObject.js";
import type { _WebArchive } from "./WebArchive.js";
import type { _NSString } from "../Foundation/NSString.js";
export declare class _DOMRange extends _DOMObject {
    static alloc(): _DOMRange;
    static new(): _DOMRange;
    init(): _DOMRange;
    setStart$offset$(refNode: _DOMNode, offset: number): void;
    setEnd$offset$(refNode: _DOMNode, offset: number): void;
    setStartBefore$(refNode: _DOMNode): void;
    setStartAfter$(refNode: _DOMNode): void;
    setEndBefore$(refNode: _DOMNode): void;
    setEndAfter$(refNode: _DOMNode): void;
    collapse$(toStart: boolean): void;
    selectNode$(refNode: _DOMNode): void;
    selectNodeContents$(refNode: _DOMNode): void;
    compareBoundaryPoints$sourceRange$(how: number, sourceRange: _DOMRange): number;
    deleteContents(): void;
    extractContents(): _DOMDocumentFragment;
    cloneContents(): _DOMDocumentFragment;
    insertNode$(newNode: _DOMNode): void;
    surroundContents$(newParent: _DOMNode): void;
    cloneRange(): _DOMRange;
    /** function toString() {
      [native code]
  } */
    toString(): _NSString;
    detach(): void;
    createContextualFragment$(html: _NSString): _DOMDocumentFragment;
    compareNode$(refNode: _DOMNode): number;
    intersectsNode$(refNode: _DOMNode): boolean;
    comparePoint$offset$(refNode: _DOMNode, offset: number): number;
    isPointInRange$offset$(refNode: _DOMNode, offset: number): boolean;
    setStart$$(refNode: _DOMNode, offset: number): void;
    setEnd$$(refNode: _DOMNode, offset: number): void;
    compareBoundaryPoints$$(how: number, sourceRange: _DOMRange): number;
    startContainer(): _DOMNode;
    startOffset(): number;
    endContainer(): _DOMNode;
    endOffset(): number;
    collapsed(): boolean;
    commonAncestorContainer(): _DOMNode;
    text(): _NSString;
    /** A WebArchive representing the range. */
    webArchive(): _WebArchive;
    /** A markup string representing the range. */
    markupString(): _NSString;
}
