import { StateField, type Extension } from '@codemirror/state'; /** * How long a flashing statement bubble keeps its flash class: the flash * animation's duration plus a buffer, so the class never ends the animation early. * @internal */ export declare const STATEMENT_FLASH_CLEAR_DELAY_MS: number; /** * @internal */ export type StatementFlashRange = { from: number; to: number; }; /** * @internal */ export type FlashingStatementRange = StatementFlashRange & { /** * The flash this range belongs to. A re-flashed range gets a new generation, * which restarts its animation and its clear timer. */ generation: number; /** * Which of the two flash classes the bubble gets. A re-flashed range gets * the other one, because only a class change restarts the CSS animation. */ variant: 0 | 1; }; /** * @internal */ export type StatementFlashState = { /** * Document ranges whose statement bubbles currently flash. */ ranges: readonly FlashingStatementRange[]; /** * The generation of the latest flash. */ generation: number; }; /** * Starts flashing the statement bubbles that overlap the given ranges. * @internal */ export declare const flashStatementsEffect: import("@codemirror/state").StateEffectType; /** * @internal */ export declare const statementFlash: StateField; /** * State and timer for flashing statement bubbles. The bubbles themselves are * styled by `FilterStatementDecorationPlugin`, which reads `statementFlash`. * @internal */ export declare const statementFlashExtension: Extension; //# sourceMappingURL=statement-flash.d.ts.map