export interface HighlightCodeOptions { language: string; } /** * Color the code inside `node` with the CSS Custom Highlight API, without * changing the DOM. Registers one `StaticRange` per token, and re-highlights * when the code's text or nodes change. Highlights the first `` inside * `node`, or `node` itself. Sets `data-ccs-highlight` on `node`, which * scopes the `::highlight()` rules in `syntax.css`. A Svelte action: * `
`.
 * Does nothing where `CSS.highlights` is unsupported.
 */
export function highlightCode(
  node: HTMLElement,
  options: string | HighlightCodeOptions,
): {
  update: (options: string | HighlightCodeOptions) => void;
  destroy: () => void;
};