@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
17 lines (16 loc) • 570 B
TypeScript
/**
* @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/abortabletimeout
*/
/**
* Creates a promise that resolves after `delay` ms and an `AbortController` that can cancel it early.
*
* The promise rejects if the abort controller is signalled before the timeout fires.
*/
export declare function createAbortableTimeout(delay: number): {
promise: Promise<void>;
abortController: AbortController;
};