impress.me
Version:
Create impress.js presentations from markdown documents with style
34 lines (33 loc) • 2.14 kB
TypeScript
/// <reference types="node" />
import { ImpressMeConfig } from './impress-me-config';
import { SlideNode } from './slide-node';
export declare const excludeSlideClasses: string[];
export declare const attrPattern: RegExp;
export declare const attrItemPattern: RegExp;
export declare const logInit: () => void;
export declare const log: (message: string) => void;
export declare const logStep: (message: string) => <T>(input: T) => T;
export declare const logEnd: (message: string) => (() => void);
export declare const toOutputFilename: (input: string) => string;
export declare const resolvePath: (p: string, prefixes?: string[]) => string;
export declare const findRoot: (node: SlideNode) => SlideNode;
export declare const splitConfigAndContent: (content: string) => [string, string];
export declare const parseYamlConfig: (yaml: string | undefined) => Partial<ImpressMeConfig> | undefined;
export declare const parseInput: (file: string) => Promise<[string, Partial<ImpressMeConfig> | undefined]>;
export declare const findIndex: (root: SlideNode, node: SlideNode) => number;
export declare const flattenNodes: (node: SlideNode) => SlideNode[];
export declare const includeSlide: (node: SlideNode) => boolean;
export declare const contentTypeOf: (data: string) => string;
export declare const toDataUri: (data: Buffer) => string;
export declare const fileToDataUri: (file: string) => string;
/**
* This is a blocking operation, and will not scale well with large amounts of downloads!
* @param {string} url - the URL to send a GET request to
* @return {string} the response body from the request to the given URL
*/
export declare const urlToDataUri: (url: string) => string;
export declare const extractUri: (uri: string) => string;
export declare const insertCssVars: (config: ImpressMeConfig) => (css: string) => string;
export declare const mergeCss: (cssFiles: string[], preProcess: (css: string) => string) => Promise<string>;
export declare const mergeJs: (jsFiles: string[]) => Promise<string>;
export declare const renderTemplate: (template: string, html: string, js: string, css: string, config: ImpressMeConfig) => string;