/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EditorState } from '@progress/kendo-editor-common'; import { ActiveMarks } from './common/active-marks'; import { Predicate } from './common/predicate'; /** * @hidden */ export declare function outerWidth(element: HTMLElement): number; /** * @hidden */ export declare const removeEntries: (obj: T, predicate: Predicate) => Partial; /** * @hidden */ export declare const removeEmptyEntries: (obj: T) => Partial; /** * @hidden */ export declare const isEmpty: (obj: Object) => boolean; /** * @hidden */ export declare const isNullOrUndefined: (value: any) => boolean; /** * @hidden */ export declare const isPresent: (value: any) => boolean; /** * @hidden */ export declare const safeString: (value: any) => string; /** * @hidden */ export declare const first: (arr: any[]) => any; /** * @hidden */ export declare const last: (arr: any[]) => any; /** * @hidden */ export declare const unique: (arr: any[]) => any[]; /** * @hidden */ export declare const split: (splitter: string) => (value: string) => string[]; /** * @hidden */ export declare const trim: (value: string) => string; /** * @hidden */ export declare const filter: (predicate: (value: any) => boolean) => (arr: any[]) => any[]; /** * @hidden */ export declare const toArray: (x: T | T[]) => T[]; /** * @hidden */ export declare const getUniqueStyleValues: (style: ActiveMarks, cssStyle: string) => string; /** * @hidden */ export declare const conditionallyExecute: (fn: (x: T) => R) => (condition: boolean) => (param: T) => T | R; /** * @hidden */ export declare const pipe: (...fns: any[]) => (x: any) => any; /** * A method for extracting the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)). * * ```ts * import {getSelectionText} from '@progress/kendo-angular-editor'; * * export class AppComponent { * @ViewChild('editor') public editor; * public onClick(){ * const selection = getSelectionText(this.editor.view.state) * } * } * ``` * @param state * @returns the selection text. */ export declare const getSelectionText: (state: EditorState) => string; /** * @hidden */ export declare const replaceMessagePlaceholder: (message: string, replacements: { placeholder: string; value: string; }[]) => string;