import AwaitedHandler from '../AwaitedHandler'; import AwaitedPath from '../AwaitedPath'; import Constructable from '../Constructable'; import { IRange, IAbstractRange, IDocumentFragment, IDOMRect, IDOMRectList } from '../interfaces/official'; import { ISuperNode } from '../interfaces/super'; import { INodeIsolate } from '../interfaces/isolate'; import { IAbstractRangeProperties } from './AbstractRange'; export declare const getState: (instance: IRange) => IRangeProperties, setState: (instance: IRange, properties: Partial) => void; export declare const awaitedHandler: AwaitedHandler; export declare function RangeGenerator(AbstractRange: Constructable): { new (): { readonly END_TO_END: number; readonly END_TO_START: number; readonly START_TO_END: number; readonly START_TO_START: number; readonly commonAncestorContainer: ISuperNode; cloneContents(): IDocumentFragment; cloneRange(): IRange; collapse(toStart?: boolean | undefined): Promise; compareBoundaryPoints(how: number, sourceRange: IRange): Promise; comparePoint(node: INodeIsolate, offset: number): Promise; createContextualFragment(fragment: string): IDocumentFragment; deleteContents(): Promise; detach(): Promise; extractContents(): IDocumentFragment; getBoundingClientRect(): IDOMRect; getClientRects(): IDOMRectList; insertNode(node: INodeIsolate): Promise; intersectsNode(node: INodeIsolate): Promise; isPointInRange(node: INodeIsolate, offset: number): Promise; selectNode(node: INodeIsolate): Promise; selectNodeContents(node: INodeIsolate): Promise; setEnd(node: INodeIsolate, offset: number): Promise; setEndAfter(node: INodeIsolate): Promise; setEndBefore(node: INodeIsolate): Promise; setStart(node: INodeIsolate, offset: number): Promise; setStartAfter(node: INodeIsolate): Promise; setStartBefore(node: INodeIsolate): Promise; surroundContents(newParent: INodeIsolate): Promise; toString(): Promise; readonly collapsed: Promise; readonly endContainer: ISuperNode; readonly endOffset: Promise; readonly startContainer: ISuperNode; readonly startOffset: Promise; }; readonly END_TO_END: number; readonly END_TO_START: number; readonly START_TO_END: number; readonly START_TO_START: number; }; export interface IRangeProperties extends IAbstractRangeProperties { awaitedPath: AwaitedPath; awaitedOptions: any; readonly commonAncestorContainer?: ISuperNode; } export declare const RangePropertyKeys: string[]; export declare const RangeConstantKeys: string[];