/** * Get a cached paragraph context or compute and store it. * Returns cached context if the paragraph node and revision match, otherwise computes fresh. * * @param {import('prosemirror-model').Node} paragraph - The paragraph node (immutable) * @param {number} startPos - Starting position of the paragraph in the document * @param {any} helpers - Editor helpers for context extraction * @param {number} revision - Current plugin state revision number (invalidates on doc changes) * @param {function(import('prosemirror-model').Node, number, any): any} compute - Function to compute context if cache misses * @returns {any} The paragraph context (cached or freshly computed) */ export function getParagraphContext(paragraph: import('prosemirror-model').Node, startPos: number, helpers: any, revision: number, compute: (arg0: import('prosemirror-model').Node, arg1: number, arg2: any) => any): any; /** * Clears the cached context for a specific paragraph node. * * @param {import('prosemirror-model').Node} paragraph - The paragraph node to remove from cache * @returns {void} */ export function clearParagraphContext(paragraph: import('prosemirror-model').Node): void; /** * Clears all cached paragraph contexts by replacing the cache with a fresh WeakMap. * * @returns {void} */ export function clearAllParagraphContexts(): void; //# sourceMappingURL=paragraphContextCache.d.ts.map