/** * Conventional commit parsing utilities */ /** * Regex pattern for matching conventional commits * Matches: type(scope)?: description * Example: feat(api): add new endpoint */ export declare const CONVENTIONAL_COMMIT_REGEX: RegExp; /** * Strict conventional commit types as defined by Conventional Commits specification * Used for strict validation in PR checks */ export declare const STRICT_CONVENTIONAL_TYPES: readonly ["feat", "fix", "docs", "style", "refactor", "perf", "test", "chore", "build", "ci", "revert"]; /** * Regex for strict conventional commit validation (only approved types) */ export declare const STRICT_CONVENTIONAL_COMMIT_REGEX: RegExp; /** * Check if a commit message matches conventional commit format (lenient) * * @param message Commit message to check * @returns true if message matches conventional format */ export declare function isConventionalCommit(message: string): boolean; /** * Check if a commit message matches strict conventional commit format * * @param message Commit message to check * @returns true if message matches strict format */ export declare function isStrictConventionalCommit(message: string): boolean; /** * Extract conventional commit parts from a message * * @param message Commit message * @returns Parsed parts or null if not conventional */ export declare function parseConventionalCommit(message: string): { type: string; scope?: string; breaking: boolean; description: string; } | null;