@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
38 lines (37 loc) • 1.03 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import { View } from 'ckeditor5/src/ui.js';
import { type Locale } from 'ckeditor5/src/utils.js';
/**
* @module ai/aicore/ui/aiskeleton
*/
export declare class AISkeletonView extends View {
/**
* @inheritDoc
*/
constructor(locale: Locale | undefined, skeletonItemsList: Array<SkeletonDefinition>);
}
/**
* The predefined skeleton definitions for the AI skeleton view.
*/
export declare const SKELETON_DEFINITIONS: Record<string, Array<SkeletonDefinition>>;
export type SkeletonDefinition = {
tag: string;
attributes: {
class?: string;
width: string;
height: string;
align: AlignOptions;
};
};
export type SkeletonItem = {
tag: string;
attributes: {
class: Array<string>;
style: string;
};
};
type AlignOptions = 'left' | 'right' | 'center';
export {};