import type { LegacyStringOptions } from 'sass'; import type * as postcss from 'postcss'; import type { Options as PugOptions } from 'pug'; import type { TransformOptions as BabelOptions } from '@babel/core'; type ContentModifier = { prependData?: string; stripIndent?: boolean; }; type MarkupOptions = { markupTagName?: string; }; export type Coffeescript = { sourceMap?: boolean; filename?: never; bare?: never; } & ContentModifier; export type Postcss = postcss.ProcessOptions & { plugins?: postcss.AcceptedPlugin[]; configFilePath?: string; } & ContentModifier; export type Babel = BabelOptions & { sourceType?: 'module'; minified?: false; ast?: false; code?: true; sourceMaps?: boolean; } & ContentModifier; export type Pug = Omit & ContentModifier & MarkupOptions; export type Sass = Omit, 'file' | 'data'> & ContentModifier; export type Less = { paths?: string[]; plugins?: any[]; strictImports?: boolean; maxLineLen?: number; dumpLineNumbers?: 'comment' | string; silent?: boolean; strictUnits?: boolean; globalVars?: Record; modifyVars?: Record; } & ContentModifier; export type Stylus = { globals?: Record; functions?: Record; imports?: string[]; paths?: string[]; sourcemap?: boolean; } & ContentModifier; export type Typescript = { compilerOptions?: any; tsconfigFile?: string | boolean; tsconfigDirectory?: string | boolean; reportDiagnostics?: boolean; } & ContentModifier; export interface GlobalStyle { sourceMap: boolean; } export type Replace = Array<[string | RegExp, string] | [RegExp, (substring: string, ...args: any[]) => string]>; export {};