1 import LazyResult from './lazy-result';
2 import postcss from './postcss';
3 import Result from './result';
4 export default class Processor implements postcss.Processor {
6 * Contains the current version of PostCSS (e.g., "5.0.19").
10 * Contains plugins added to this processor.
12 plugins: postcss.Plugin<any>[];
13 constructor(plugins?: (typeof postcss.acceptedPlugin)[]);
15 * Adds a plugin to be used as a CSS processor. Plugins can also be
16 * added by passing them as arguments when creating a postcss instance.
18 use(plugin: typeof postcss.acceptedPlugin): this;
20 * Parses source CSS. Because some plugins can be asynchronous it doesn't
21 * make any transformations. Transformations will be applied in LazyResult's
23 * @param css Input CSS or any object with toString() method, like a file
24 * stream. If a Result instance is passed the processor will take the
25 * existing Root parser from it.
27 process(css: string | {
29 } | Result, options?: postcss.ProcessOptions): LazyResult;
30 private normalize(plugins);