= ( this: Marpit['markdown'] & T, md: Marpit['markdown'] & T, ...params: P ) => void type ThemeMetaType = { [key: string]: StringConstructor | ArrayConstructor } type ThemeReservedMeta = { theme: string } interface ThemeSetOptions { cssNesting?: boolean } type ThemeOptions = { cssNesting?: boolean metaType?: ThemeMetaType } type ThemeSetPackOptions = { after?: string before?: string containers?: Element[] printable?: boolean inlineSVG?: boolean } type PluginFactory =
( plugin: Plugin
, ) => Plugin
export class Marpit {
constructor(opts?: Options)
markdown: any
themeSet: ThemeSet
readonly customDirectives: {
global: DirectiveDefinitions
local: DirectiveDefinitions
}
readonly options: Options
protected lastComments: RenderResult['comments'] | undefined
protected lastGlobalDirectives: { [directive: string]: any } | undefined
protected lastSlideTokens: any[] | undefined
protected lastStyles: string[] | undefined
render(markdown: string, env: MarpitEnv.HTMLAsArray): RenderResult (plugin: Plugin , ...params: P): this
protected applyMarkdownItPlugins(md: any): void
protected renderMarkdown(markdown: string, env?: any): string
protected renderStyle(theme?: string): string
protected themeSetPackOptions(): ThemeSetPackOptions
}
export class Element {
constructor(tag: string, attributes?: {})
[index: string]: any
tag: string
}
export class Theme {
protected constructor(name: string, css: string)
static fromCSS(cssString: string, opts?: ThemeOptions): Readonly