export declare type CommitHeader = { type: string; scope?: string; subject: string; }; export declare type Commit = { header: CommitHeader; body?: string | null; footer?: string | null; increment?: string; isBreaking?: boolean; mentions?: Array; }; export declare type Plugin = (commit: Commit) => Commit; /** * * @param {string} commitMessage required, a whole commit message * @param {Array} plugins optional, a list of functions that get passed with `commit` object */ declare function parse(commitMessage: string, plugins: Array): Commit; /** * An object with all mappers, such as `plugins` array, but named. */ declare const mappers: { [key: string]: any; }; /** * A list of all plugins, such as `mappers` but no names. */ declare const plugins: Array; /** * Expose everything */ export { mappers, plugins, parse };