/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 */
import type { LexicalEditor, LexicalNode } from 'lexical';
import { CodeNode } from '@lexical/code-core';
export interface Tokenizer {
    defaultLanguage: string;
    defaultTheme: string;
    $tokenize: (this: Tokenizer, codeNode: CodeNode, language?: string) => LexicalNode[];
}
export declare const ShikiTokenizer: Tokenizer;
export declare function registerCodeHighlighting(editor: LexicalEditor, tokenizer?: Tokenizer): () => void;
export type CodeHighlighterShikiConfig = Tokenizer;
/**
 * Add code highlighting support for code blocks with Shiki
 */
export declare const CodeHighlighterShikiExtension: import("lexical").LexicalExtension<Tokenizer, "@lexical/code-shiki", unknown, unknown>;
