import { StringRuleChecker } from './string-rule-checker'; import { CapitalizationStyle } from './string-types'; import { GuardResult } from '../../core/guard-result'; export declare class StringIsCapitalized extends StringRuleChecker<{ type: 'isCapitalized'; style: CapitalizationStyle; checkFirstCharIsLetter?: boolean; }> { constructor(rule: { type: 'isCapitalized'; style: CapitalizationStyle; checkFirstCharIsLetter?: boolean; }, value: string); /** * @override */ exec(): GuardResult; /** * Checks if first encountered character is capitalized, even if it's not letter. * @param value * @returns */ private checkFirstChar; /** * Checks if first encountered character is mandatorily a capitalized letter. * @param value * @returns */ private checkFirstCharIsLetter; /** * Checks if string follows start case capitalization, in a strict or permissive style. * @param value * @returns */ private checkStartCase; }