import type { AnyModule } from '../../lib/optional-deps-resolver.js'; import type { StyleLoaderOptions } from '../common-style-loaders.js'; export declare const postCssConfigSearchPlaces: string[]; export declare function findPostCssConfig(projectPath: string): string | undefined; export declare function findIgnoredPostCssConfigs(projectPath: string): Array<{ file: string; rename: string; }>; export declare function postCssSetupFiles(projectPath: string): string[]; export declare function postCssConfigHelpers(projectPath: string): string[]; export declare function loadUserPostCssConfigObject(configPath: string, projectPath: string, mode: string, outcome?: { refused: boolean; }, report?: (message: string) => void): Promise; export declare function isUsingPostCss(projectPath: string): boolean; export type PostCssOptions = { cwd: string; config: string | boolean; plugins?: unknown[]; [option: string]: unknown; }; export type PostCssRule = { loader?: undefined; options?: undefined; } | { loader: string; options: { postcssOptions: PostCssOptions; sourceMap: boolean; }; }; export type PostCssLoaderRule = Extract; export type PostCssRuleReader = (projectPath: string, opts: StyleLoaderOptions) => Promise; export interface PostCssCompilerReader extends PostCssRuleReader { reread(): Promise; } export declare function postCssReaderForOneCompiler(warn?: (message: string) => void): PostCssCompilerReader; export declare function maybeUsePostCss(projectPath: string, opts: StyleLoaderOptions): Promise;