/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module ai/aicore/utils/autoadvancedelay */ import { type DelayedFunc } from "@ckeditor/ckeditor5-utils"; /** * How long, in milliseconds, the built-in UI waits after a decision on a change before it moves on to the next one. * The decided change shows its state ("Accepted", "Dismissed") in the meantime, so the user sees the decision land before * the lists, the content and the floating UI move, all at once. * * It is the default value of * {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig#autoAdvanceDelay `config.ai.review.autoAdvanceDelay`}, * {@link module:ai/aichat/aichat~AIChatConfig#autoAdvanceDelay `config.ai.chat.autoAdvanceDelay`}, and * {@link module:ai/toolkit/proposedchangescontrollertype~ProposedChangesControllerOptions#autoAdvanceDelay}. */ export declare const AUTO_ADVANCE_DELAY = 600; /** * Works like {@link module:utils/delay~delay `delay()`}, but with `wait` set to `0` it calls `func` right away, in the same call * as the decision, so turning the pause off does not leave a frame with the decided change still in place. * * @param func The function to wrap. * @param wait The timeout in ms. */ export declare function delayAutoAdvance) => any>(func: T, wait: number): DelayedFunc;