export let defaultSDKContextOptions = {
    versioning: {
        previewStringRegex: /$/,
    },
    additionalDecorators: [],
};
export function setSDKContextOptions(options) {
    defaultSDKContextOptions = {
        versioning: options.versioning ?? defaultSDKContextOptions.versioning,
        additionalDecorators: appendAdditionalDecoratorsInContextOptions(options),
    };
}
function appendAdditionalDecoratorsInContextOptions(options) {
    if (options.additionalDecorators) {
        if (defaultSDKContextOptions.additionalDecorators) {
            return [...defaultSDKContextOptions.additionalDecorators, ...options.additionalDecorators];
        }
        else {
            return options.additionalDecorators;
        }
    }
    else {
        return defaultSDKContextOptions.additionalDecorators;
    }
}
//# sourceMappingURL=sdk-context-options.js.map