import type { ViewRange } from '../peritext/editor/types';
import type { PmNode } from './types';
/**
 * Converts ProseMirror raw nodes to a {@link ViewRange} flat string with
 * annotation ranges, which is the natural view format for a Peritext model.
 *
 * Usage:
 *
 * ```typescript
 * FromPm.convert(node);
 * ```
 */
export declare class FromPm {
    static readonly convert: (node: PmNode) => ViewRange;
    private text;
    private slices;
    private conv;
    private cont;
    convert(node: PmNode): ViewRange;
}
