/**
 * @param {string} value
 *   Code to highlight.
 * @param {Readonly<IGrammar>} grammar
 *   Grammar instance to use.
 * @param {ReadonlyArray<string>} colors
 *   Colors that are in the theme.
 * @returns {Root}
 *   A hast root that includes basic `<span>`s and text nodes.
 */
export function parse(value: string, grammar: Readonly<IGrammar>, colors: ReadonlyArray<string>): Root;
export type Element = import('hast').Element;
export type Root = import('hast').Root;
export type IGrammar = import('vscode-textmate').IGrammar;
export type StateStack = import('vscode-textmate').StateStack;
