UNPKG

1.17 kBTypeScriptView Raw
1export = pluginCreator;
2/**
3 * @typedef {Parameters<typeof convert>[2]} ConvertOptions
4 * @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
5 * @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
6 * @typedef {{precision?: false | number} & ConvertOptions & AutoprefixerOptions & BrowserslistOptions} Options
7 */
8/**
9 * @type {import('postcss').PluginCreator<Options>}
10 * @param {Options} opts
11 * @return {import('postcss').Plugin}
12 */
13declare function pluginCreator(opts?: Options): import("postcss").Plugin;
14declare namespace pluginCreator {
15 export { postcss, ConvertOptions, AutoprefixerOptions, BrowserslistOptions, Options };
16}
17declare var postcss: true;
18type ConvertOptions = Parameters<typeof convert>[2];
19type AutoprefixerOptions = {
20 overrideBrowserslist?: string | string[];
21};
22type BrowserslistOptions = Pick<browserslist.Options, "stats" | "path" | "env">;
23type Options = {
24 precision?: false | number;
25} & ConvertOptions & AutoprefixerOptions & BrowserslistOptions;
26import convert = require("./lib/convert.js");
27import browserslist = require("browserslist");
28//# sourceMappingURL=index.d.ts.map
\No newline at end of file