import type { Extension } from 'prosekit/core'; import type { SpecialLanguage } from 'shiki'; import type { ShikiBundledLanguage, ShikiBundledTheme } from './shiki-bundle.js'; /** * @public */ export interface FrontmatterShikiOptions { /** * Theme registation * * @default ['one-dark-pro'] */ themes?: ShikiBundledTheme[]; /** * Language registation * * @default ['text'] */ langs?: (ShikiBundledLanguage | SpecialLanguage)[]; /** * Alias of languages * * @example { 'my-lang': 'javascript' } */ langAlias?: Record; } /** * Adds syntax highlighting to code blocks using the [shiki](https://github.com/shikijs/shiki) package. * * @public */ export declare function defineFrontmatterShiki({ themes, langs, langAlias, }?: FrontmatterShikiOptions): Extension;