import * as Options from './options'; import type { Processed as SvelteProcessed, Preprocessor, PreprocessorGroup } from 'svelte/types/compiler/preprocess'; export { Options }; export { Processed as SvelteProcessed, PreprocessorGroup, Preprocessor, } from 'svelte/types/compiler/preprocess'; export declare type PreprocessorArgs = Preprocessor extends (options: infer T) => any ? T : never; export declare type TransformerArgs = { content: string; filename?: string; attributes?: Record; map?: string | object; markup?: string; dianostics?: unknown[]; options?: T; }; export declare type Processed = SvelteProcessed & { diagnostics?: any[]; }; export declare type Transformer = (args: TransformerArgs) => Processed | Promise; export declare type TransformerOptions = boolean | T | Transformer; export interface Transformers { babel?: TransformerOptions; typescript?: TransformerOptions; scss?: TransformerOptions; sass?: TransformerOptions; less?: TransformerOptions; stylus?: TransformerOptions; postcss?: TransformerOptions; coffeescript?: TransformerOptions; pug?: TransformerOptions; globalStyle?: Options.GlobalStyle; replace?: Options.Replace; [language: string]: TransformerOptions; } export declare type AutoPreprocessGroup = PreprocessorGroup & { defaultLanguages: Readonly<{ markup: string; style: string; script: string; }>; }; export declare type AutoPreprocessOptions = { markupTagName?: string; aliases?: Array<[string, string]>; preserve?: string[]; /** @deprecated Don't use "defaults" anymore, define the language being used explicitly instead */ defaults?: { markup?: string; style?: string; script?: string; }; sourceMap?: boolean; babel?: TransformerOptions; typescript?: TransformerOptions; scss?: TransformerOptions; sass?: TransformerOptions; less?: TransformerOptions; stylus?: TransformerOptions; postcss?: TransformerOptions; coffeescript?: TransformerOptions; pug?: TransformerOptions; globalStyle?: Options.GlobalStyle | boolean; replace?: Options.Replace; [languageName: string]: TransformerOptions; };