UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

14 lines 981 B
import { ComponentFormatFunction } from '../i18n/context'; import { TagEditorProps } from './interfaces'; export interface ValidationError { key?: string; value?: string; } export declare function validate(tags: ReadonlyArray<TagEditorProps.Tag>, keyDirtyState: ReadonlyArray<boolean>, i18n: ComponentFormatFunction<'tag-editor'>, i18nStrings: TagEditorProps.I18nStrings | undefined, charRegex?: RegExp): ReadonlyArray<ValidationError | undefined>; export declare const awsPrefixCheck: (value: string) => boolean; export declare const emptyKeyCheck: (value: string) => boolean; export declare const maxKeyLengthCheck: (value: string) => boolean | ""; export declare const duplicateKeyCheck: (value: string, keyCache?: Record<string, number | undefined>) => boolean; export declare const maxValueLengthCheck: (value: string) => boolean | ""; export declare const invalidCharCheck: (value: string, validCharRegex?: RegExp) => boolean; //# sourceMappingURL=validation.d.ts.map