import { Plugin } from 'prosemirror-state'; /** * Enforces a character limit by rejecting transactions that grow the * document past it. Shrinking edits are always allowed, even while over the * limit (e.g. after the limit was lowered), so users can recover. */ export declare function maxLengthPlugin(getMaxLength: () => number): Plugin;