html-screen-capture-js
Version:
27 lines (26 loc) • 907 B
TypeScript
export declare enum OutputType {
OBJECT = "object",
STRING = "string"
}
export declare enum LogLevel {
DEBUG = "debug",
INFO = "info",
WARN = "warn",
ERROR = "error",
FATAL = "fatal",
OFF = "off"
}
export interface Options {
rulesToAddToDocStyle?: string[];
cssSelectorsOfIgnoredElements: string[];
tagsOfSkippedElementsForChildTreeCssHandling?: string[];
attrKeyForSavingElementOrigClass?: string;
attrKeyForSavingElementOrigStyle?: string;
prefixForNewGeneratedClasses?: string;
prefixForNewGeneratedPseudoClasses?: string;
imageFormatForDataUrl?: string;
imageQualityForDataUrl?: number;
logLevel?: LogLevel;
}
export declare type CaptureOutput = HTMLElement | string | null;
export declare type CaptureFunction = (outputType?: OutputType, htmlDocument?: HTMLDocument, options?: Options) => CaptureOutput;