import postcss from 'postcss'; import { PostCSSConfig } from 'postcss-load-config'; /** Get the output path for a css file. */ export declare function getCSSPath(inFile: string, inDir: string, outDir: string): string; interface LoadOptions { /** Use css modules */ useModules?: boolean; /** The path to the config file */ configFile?: string; /** Where to store the build results */ outDir?: string; /** Dir to start looking for configs in */ cwd?: string; /** * Report whether there were errors when loading the config. * If we are building a package that runs before everything is built * and it doesn't have css (in the typescript build). We don't care about the error. */ reportError?: boolean; } /** Load the user's postcss config or our default. */ export declare function getPostCssConfig({ useModules, configFile, outDir, cwd, reportError }: LoadOptions): Promise; /** Load the user's postcss config or our default synchronously. */ export declare function getPostCssConfigSync({ useModules, configFile, outDir, cwd, reportError }: LoadOptions): PostCSSConfig; interface TranspileOptions { /** Css file to transpile */ inFile: string; /** Directory file is in */ inDir: string; /** Directory to put the build output */ outDir: string; /** Where the postcss.config is */ configFile: string; /** The builder was started in watch mode */ watch: boolean; } /** * Transpile a CSS file using babel. * Write the CJS version to disk. * Write the transpiled version to disk. * * @returns the transpiled CSS */ export default function transpile({ inFile, inDir, outDir, configFile, watch }: TranspileOptions): Promise; export {}; //# sourceMappingURL=postcss.d.ts.map