UNPKG

md2cwm

Version:

markdown to Confluence Wiki Markup

157 lines (156 loc) 5.32 kB
import type { UserDefinedOptions } from './types'; export declare function getDefaultLanguageMap(): Record<string, string>; export declare function getCodeBlockParams(): { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; }; export declare function getOptions(options: UserDefinedOptions): Omit<UserDefinedOptions, "codeBlock"> & Omit<{ codeBlock: { languageMap: Record<string, string>; options: { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; }; }; }, "codeBlock"> & { codeBlock: { languageMap: Record<string, string>; options: { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; }; } | (Omit<{ languageMap?: import("./types").LanguageMap | undefined; options?: import("./types").CodeBlockOptions | undefined; }, "options" | "languageMap"> & Omit<{ languageMap: Record<string, string>; options: { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; }; }, "options" | "languageMap"> & { options: { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; } | (Omit<import("./types").CodeBlockOptions, "options" | "get"> & Omit<{ options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; get(lang: string): { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }; }, "options" | "get"> & { options: { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; } | (Omit<Record<string, string | boolean>, "title" | "language" | "borderStyle" | "theme" | "linenumbers" | "collapse"> & Omit<{ title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }, "title" | "language" | "borderStyle" | "theme" | "linenumbers" | "collapse"> & { title: string | boolean; language: string | boolean; borderStyle: string | boolean; theme: string | boolean; linenumbers: string | boolean; collapse: string | boolean; }); get: ((lang: string) => Record<string, string | boolean>) | ((lang: string) => { title: string; language: string; borderStyle: string; theme: string; linenumbers: boolean; collapse: boolean; }); }); languageMap: import("./types").LanguageMap | Record<string, string>; }); };