import { UserConfig } from '@commitlint/types';

type Config = UserConfig;
interface Options {
    /**
     * Monorepo support.
     *
     * Option true: auto detect.
     *
     * Option false: no monorepo.
     *
     * @default true
     */
    monorepo?: "lerna" | "nx" | "pnpm-workspace" | "rush" | boolean;
    /**
     * Commit style.
     *
     * @default "conventional"
     */
    style?: "angular" | "conventional";
}

declare function commitlint(options?: Options, userConfig?: Config): Config;

export { type Config as C, type Options as O, commitlint as c };
