export function collectTrackedChanges({ state, from, to }: {
    state: import("prosemirror-state").EditorState;
    from: number;
    to: number;
}): Array<any>;
export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }: {
    editor: {
        setHighContrastMode: (value: any) => void;
        get docChanged(): boolean;
        mount(el: any): void;
        unmount(): void;
        view: any;
        setToolbar(toolbar: any): void;
        toolbar: any;
        focus(): void;
        get state(): any;
        get storage(): any;
        readonly commands: any;
        readonly helpers: EditorHelpers;
        get isEditable(): boolean;
        get isDestroyed(): boolean;
        get element(): HTMLElement;
        get users(): Array<User>;
        chain(): any;
        can(): any;
        setDocumentMode(documentMode: string, caller: string): void;
        generateCollaborationUpdate(): Promise<Uint8Array>;
        initializeCollaborationData(): void;
        replaceContent(content: object): void;
        setOptions(options?: EditorOptions): void;
        options: any;
        setEditable(editable?: boolean, emitUpdate?: boolean): void;
        registerPlugin(plugin: any, handlePlugins: any): void;
        unregisterPlugin(nameOrPluginKey: string | any): void;
        getSchemaSummaryJSON(): Promise<any>;
        validateJSON(doc2: any): any;
        createNodeViews(): void;
        getMaxContentSize(): any;
        updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
        initDefaultStyles(element?: HTMLElement, isPaginationEnabled?: boolean): void;
        initMobileStyles(element: HTMLElement | void): void;
        getDocumentIdentifier(): Promise<string>;
        getDocumentGuid(): string | null;
        isDocumentModified(): boolean;
        getTelemetryData(): Promise<{
            documentId: string;
            isModified: boolean;
            isPermanentId: boolean;
            version: any;
        }>;
        getDocumentId(): string;
        getAttributes(nameOrType: string): any;
        isActive(nameOrAttributes: string | any, attributesOrUndefined?: any): boolean;
        getJSON(): any;
        getMetadata(): {
            documentGuid: string | null;
            isModified: boolean;
            version: string | null;
        };
        getHTML({ unflattenLists }?: {
            unflattenLists?: boolean;
        }): string;
        getMarkdown(): Promise<string>;
        getDocumentVersion(): string | null;
        createChildEditor(options: EditorOptions): {
            new (options: EditorOptions): /*elided*/ any;
            loadXmlData(fileSource: File | Blob | Buffer, isNode2?: boolean): Promise<any[]>;
            getDocumentVersion(doc2: any): string;
            setDocumentVersion(doc2: any, version2: any): string;
            getDocumentGuid(doc2: any): string | null;
            updateDocumentVersion(doc2: any, version2: any): string;
            checkIfMigrationsNeeded(): boolean;
        };
        getPageStyles(): any;
        updatePageStyle({ pageMargins }: {
            pageMargins: any;
        }): void;
        migrateListsToV2(): any[];
        getUpdatedJson(): any;
        exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments, getUpdatedDocs, fieldsHighlightColor }?: {
            isFinalDoc?: boolean;
            commentsType?: string;
            comments?: any[];
            getUpdatedDocs?: boolean;
        }): Promise<Blob | ArrayBuffer | any>;
        destroy(): void;
        destroyHeaderFooterEditors(): void;
        processCollaborationMigrations(): any | void;
        replaceFile(newFile: any): Promise<void>;
        getInternalXmlFile(name: string, type?: string): any | string;
        updateInternalXmlFile(name: string, updatedContent: string): void;
        getNodesOfType(type: string): any[];
        replaceNodeWithHTML(targetNode: any, html: string): void;
        prepareForAnnotations(annotationValues?: FieldValue[]): void;
        migrateParagraphFields(annotationValues?: FieldValue[]): Promise<FieldValue[]>;
        annotate(annotationValues?: FieldValue[], hiddenIds?: string[], removeEmptyFields?: boolean): void;
        previewAnnotations(annotationValues?: any[], hiddenIds?: string[]): void;
        originalState: any;
        closePreview(): void;
        on(name: string, fn2: any): void;
        emit(name: string, ...args: any[]): void;
        off(name: string, fn2: any): void;
        once(name: string, fn2: any): void;
        removeAllListeners(): void;
    };
    action: "accept" | "reject";
    trackedChanges: Array<any>;
}): boolean;
export function collectTrackedChangesForContext({ state, pos, trackedChangeId }: {
    state: import("prosemirror-state").EditorState;
    pos: number | null;
    trackedChangeId: string | null;
}): Array<any>;
//# sourceMappingURL=permission-helpers.d.ts.map