///
import { Options } from 'browser-sync';
interface Rename {
file: string;
content: string | Uint8Array;
}
interface Remove {
file: string;
action: 'remove';
}
declare type ParsedFile = string | Rename | Remove | (string | Rename | Remove)[];
declare type FileParseFunction = (context: Context, file: string, content: string) => Promise;
declare type FilesParser = {
parse: FileParseFunction;
};
declare type FilesPlugin = FilesParser & {
extensions: string[];
};
declare type HtmlParser = {
template: string;
processContent(content: string): string;
};
declare const defaultConfig: {
input: string;
output: string;
template: string;
htmlExtensions: string[];
sourceExtensions: string[];
passThrough: never[];
devServerOptions: Options;
sassOptions: {
style: string;
};
markdownOptions: {};
pugOptions: import("pug").Options;
plugins: (FilesParser | FilesPlugin)[];
verbose: boolean;
};
export declare type Config = typeof defaultConfig;
export declare type Context = {
config: Config;
parser: HtmlParser;
};
export declare const simplestBuild: (config?: Partial) => Promise;
export declare const simplestWatch: (config?: Partial) => Promise;
export declare const simplestDev: (config?: Partial) => Promise;
export {};