<commit_before>// Type definitions for rollup-plugin-postcss 2.0
// Project: https://github.com/egoist/rollup-plugin-postcss
// Definitions by: <NAME> <https://github.com/favna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

/// <reference types="node" />
import { Plugin } from 'rollup';
import { CssNanoOptions } from 'cssnano';

export interface PostCssPluginOptions {
    extensions?: string[];
    plugins?: any[];
    inject?: boolean | {
        insertAt?: 'top' | string;
    };
    extract?: boolean | string;
    modules?: boolean | unknown;
    autoModules?: boolean;
    minimize?: boolean | CssNanoOptions;
    sourceMap?: boolean | 'inline';
    exec?: boolean;
    config?: boolean | {
        path: string;
        ctx: any;
    };
    name?: any[] | any[][];
    loaders?: any[];
    namedExports?(...args: any[]): void | boolean;
    parser?(...args: any[]): void | string;
    syntax?(...args: any[]): void | string;
    stringifier?(...args: any[]): void | string;
    onImport?: (id: any) => void;
}<commit_msg>🤖 Merge PR #46784 Fixed rollup-plugin-postcss function types by @flying-sheep<commit_after>// Type definitions for rollup-plugin-postcss 2.0
// Project: https://github.com/egoist/rollup-plugin-postcss
// Definitions by: <NAME> <https://github.com/favna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

/// <reference types="node" />
import { Plugin } from 'rollup';
import { CssNanoOptions } from 'cssnano';

export interface PostCssPluginOptions {
    extensions?: string[];
    plugins?: any[];
    inject?: boolean | {
        insertAt?: 'top' | string;
    } | ((cssVariableName: string, fileId: string) => string);
    extract?: boolean | string;
    modules?: boolean | unknown;
    autoModules?: boolean;
    minimize?: boolean | CssNanoOptions;
    sourceMap?: boolean | 'inline';
    exec?: boolean;
    config?: boolean | {
        path: string;
        ctx: any;
    };
    name?: any[] | any[][];
    loaders?: any[];
    namedExports?: ((name: string) => string) | boolean;
    parser?: ((...args: any[]) => void) | string;
    syntax?: ((...args: any[]) => void) | string;
    stringifier?: ((...args: any[]) => void) | string;
    onImport?: (id: any) => void;
}
{'fraction_non_alphanumeric': 0.17838541666666666, 'fraction_numerical': 0.005642361111111111, 'mean_word_length': 3.1985428051001823, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 16, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '657810', 'n_tokens_mistral': 722, 'n_tokens_neox': 727, 'n_words': 190}