export declare const REGEX_VALIDATE_STRING_AS_ID: RegExp; export declare const REGEX_FIND_VALID_ID: RegExp; /** * Represents a valid asset ID. */ export declare class Id { private _catalogId; private _externalId; private _fullId; private _valid; constructor(catalogOrCombinedId: string, externalId?: string | undefined); get isValid(): boolean; get catalogId(): string | undefined; get externalId(): string | undefined; get fullId(): string | undefined; static new(catalogOrCombinedId: string, externalId?: string | undefined): Id | undefined; isEqual(other: Id | string): boolean; } /** * Validates if the full given string is a valid ID. * @returns true if the string matches the ID format, false otherwise */ export declare function validateId(id: string): boolean; /** * Splits the given string by : and returns the first part which is the expected catalog ID. * This doesn't check if the ID is valid. Only checks if there is at least one colon and returns the part before it. * @param id full ID in the catalogId:externalId format * @returns the catalogId part or undefined */ export declare function getCatalogId(id: string): string | undefined; /** * Extracts the external ID from the given ID. * This function assumes the ID is in the format catalogId:externalId. * This doesn't check if the ID is valid. Only checks if there is at least one colon and returns the part after it. * @param id full ID in the catalogId:externalId format * @returns the externalId part or undefined */ export declare function getExternalId(id: string): string | undefined; /** * Concatenates two the catalog ID and external ID into a single string with a colon in between. * @returns */ export declare function getCombinedId(catalogId: string, externalId: string): string; /** * Searches a string and tries to extract a valid ID from it. * @param line * @returns */ export declare function getIdFromLine(line: string): Id | undefined;