import { getRef, parseRef } from "../refs.js";
export function isAssetProperty(prop) {
    const ref = getRef({}, prop.oneOf?.[0] ?? prop);
    return Boolean(ref && isAssetRefItem(ref));
}
export function isAssetRef(str) {
    return isAssetRefItem(parseRef({}, str));
}
function isAssetRefItem(ref) {
    return ref.layerId === 'local' && ref.shapeName === 'Asset';
}
