/**
 * @description Checks if token has a valid `deprecated` property
 * @param arguments [TransformedToken](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts)
 * @returns boolean
 */
export const isDeprecated = (token) => {
    var _a;
    const deprecated = (_a = token.original.$deprecated) !== null && _a !== void 0 ? _a : token.$deprecated;
    return deprecated === true || typeof deprecated === 'string';
};
