const schemaPropertyMetadata = new Map();
function metadataKey(schemaKey, schemaVersion) {
    return `${schemaKey}::${schemaVersion}`;
}
export function registerStateCacheSchemaProperties(args) {
    const key = metadataKey(args.schemaKey, args.schemaVersion);
    // Store a copy to avoid accidental external mutation
    schemaPropertyMetadata.set(key, [...args.properties]);
}
export function getStateCacheSchemaProperties(args) {
    const key = metadataKey(args.schemaKey, args.schemaVersion);
    const properties = schemaPropertyMetadata.get(key);
    return properties ? [...properties] : undefined;
}
export function clearStateCacheSchemaProperties(args) {
    schemaPropertyMetadata.delete(metadataKey(args.schemaKey, args.schemaVersion));
}
//# sourceMappingURL=schema-metadata.js.map