import { TCModelFactory } from './TCModelFactory.js';
import { TCString } from '@iabtechlabtcf/core';
export class TCStringFactory {
    static base(isForSaving = false) {
        const encodingOptions = { isForVendors: !isForSaving };
        const tcModel = TCModelFactory.withGVL();
        return TCString.encode(tcModel, encodingOptions);
    }
    static withPubRestrictions(isForSaving = false) {
        const encodingOptions = { isForVendors: !isForSaving };
        let tcModel = TCModelFactory.withGVL();
        tcModel = TCModelFactory.addPublisherRestrictions(tcModel);
        return TCString.encode(tcModel, encodingOptions);
    }
}
