/** * Token list * * @class TokenList * @extends DSComponent * @property {Array} tokens - array of tokens */ declare class TokenList { private tokens; /** * TokenList is a rough equivalent of DOMTokenList for managing a space-separated list of strings. * * @param {string} tokens */ constructor(tokens: string); /** * Add one or more strings to the token list * * @param {string | Array} itemsToAdd - space-separated list or array of strings to add * @returns {string} - updated value of the token list */ add(itemsToAdd: string | Array): string; /** * Remove one or more strings from the token list * * @param {string} tokens - space-separated list of strings to remove * @returns {string} - updated value of the token list */ remove(tokens: string): string; /** * Check if the token list contains a specific string * * @param {string} token - string to check for * @returns {boolean} */ contains(token: string): boolean; /** * Get the current value of the token list as a space-separated string * * @returns {string} */ get value(): string; } export default TokenList;