type ValidationRule = 'letter' | 'digit' | 'whitespace' | 'control' | 'punctuation' | 'separator' | 'disable-suspect'; type ValidationResponse = string | boolean; /** * Validerer en tekst mot en liste med regler * @param value tekst som skal valideres * @param validationRules liste med regler som definerer hvilke tegn som er tilatt * @param allowChars liste med egne tegn som er tillatt * @returns true hvis teksten er gyldig, ellers en string med ugyldige tegn */ export declare const validateString: (value: string, validationRules: ValidationRule[], allowChars?: string[]) => ValidationResponse; export {}; //# sourceMappingURL=validation-utils.d.ts.map