/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IJodit } from "jodit/esm/types/index"; /** * Reads the canonical language code of a `
` block from its `language-*`
 * class (checked on the pre and on the inner `` element).
 */
export declare function parseLanguage(jodit: IJodit, pre: HTMLElement): string;
/**
 * Human readable title of a language code, taken from `pasteCode.languages`.
 */
export declare function languageTitle(jodit: IJodit, lang: string): string;
/**
 * Replaces the `language-*` class on a `
` block (and its inner ``)
 * and asks the paste-code plugin to re-highlight it.
 */
export declare function setPreLanguage(jodit: IJodit, pre: HTMLElement, lang: string): void;
/**
 * Copies the raw text of a code block to the clipboard and fires
 * `afterCopyCode.pasteCode` with the copied text.
 */
export declare function copyCodeToClipboard(jodit: IJodit, pre: HTMLElement): void;