declare type Item = RegExp | ((path: string) => boolean); declare type CSSOption = { modules: boolean | string | object; }; declare type prependDataFn = (filePath: string) => string; export interface SassOptions { prependData?: string | prependDataFn; } export interface LessOptions { paths: string[]; prependData?: string | prependDataFn; plugins?: any[]; } export interface PostcssOptions { plugins?: any[]; } export interface Style { name?: string; test?: RegExp; include?: Item[]; exclude?: Item[]; platform?: string; minify?: boolean; css?: CSSOption; sass?: SassOptions; scss?: SassOptions; less?: any; postcss?: PostcssOptions; } export interface PostCssPx2RemOptions { /** * @default 50 */ rootValue?: number; /** * @default 5 */ unitPrecision?: number; /** * @default ['*'] */ propList?: string[]; selectorBlackList?: string[]; replace?: boolean; mediaQuery?: boolean; minPixelValue?: number; exclude?: string | ((file: string) => boolean) | RegExp; } export {};