UNPKG

ketcher-core

Version:
26 lines (25 loc) 1.82 kB
import type { BaseMonomer } from "../domain/entities/BaseMonomer"; import type { IKetIdtAliases } from "../application/formatters/types/ket"; export declare const HELM_ALIAS_FORMAT_ERROR_MESSAGE = "The HELM alias must consist only of uppercase and lowercase letters, numbers, underscores (_), asterisks (*), square brackets ([]), parentheses (()), dots (.), and hyphens (-), spaces prohibited."; export declare const BILN_ALIAS_FORMAT_ERROR_MESSAGE = "The BILN alias must consist only of uppercase and lowercase letters, numbers, hyphens (`-`), underscores (`_`), and asterisks (`*`)."; export declare const HELM_ALIAS_MAX_LENGTH = 23; export declare const HELM_ALIAS_LENGTH_ERROR_MESSAGE: string; export declare const IDT_ALIAS_SLASH_ERROR_MESSAGE = "The slashes (`/`) can only be the first and last character of an IDT alias."; export declare const IDT_ALIAS_LENGTH_MAX = 10; export declare const IDT_ALIAS_LENGTH_ERROR_MESSAGE: string; export declare const MONOMER_GROUP_TEMPLATE_NAME_MAX_LENGTH = 200; export declare const MONOMER_GROUP_TEMPLATE_NAME_MAX_LENGTH_ERROR_MESSAGE: string; /** * Validates that slashes in an IDT alias only appear as the first * and/or last character. Slashes in the middle are not allowed. */ export declare function isValidIdtAlias(alias: string): boolean; export declare function isValidIdtAliasLength(alias: string): boolean; export declare function getTooLongIdtAliasEntries(idtAliases: IKetIdtAliases): { alias: string; value: string; }[]; export declare function isValidHelmAlias(alias: string): boolean; export declare function isValidBilnAlias(alias: string): boolean; export declare function isValidHelmAliasLength(alias: string): boolean; export declare function isMonomerSgroupWithAttachmentPoints(monomer: BaseMonomer): boolean | undefined;