Urara-Blog/node_modules/.pnpm-store/v3/files/e3/79565f179e8229654976942de8a856eec34542eae09070132207a22916e222d7caafe1f1ae4275f1cb62ac58410a9cb0929874cd6804d1d0536f6b6c5fab02
2022-08-14 01:14:53 +08:00

26 lines
1.1 KiB
Text

import type { parse } from "fenceparser";
export declare type Meta = NonNullable<ReturnType<typeof parse>>;
declare type Range = {
begin: number;
end: number;
text?: string;
count?: number;
tooltip?: string[];
classes?: string;
lsp?: string;
};
/**
* We're given the text which lives inside the token, and this function will
* annotate it with twoslash metadata
*/
export declare function createHighlightedString(ranges: Range[], text: string, targetedWord?: string): string;
export declare const subTripleArrow: (str: string) => string;
export declare const replaceTripleArrow: (str: string) => string;
export declare const replaceTripleArrowEncoded: (str: string) => string;
export declare function stripHTML(text: string): string;
export declare function escapeHtml(html: string): string;
/** Does anything in the object imply that we should highlight any lines? */
export declare const shouldBeHighlightable: (highlight: any) => boolean;
/** Returns a func for figuring out if this line should be highlighted */
export declare const shouldHighlightLine: (highlight: any) => (line: number) => boolean;
export {};