import { PrivacyRegime } from "./core.mjs"; import { Purpose } from "./enums/purpose.mjs"; import { InitialViewState } from "./enums/viewState.mjs"; import { RegionsOperator } from "./enums/experience.mjs"; import { OnConsentExpiry } from "./enums/consentExpiry.mjs"; import { IsoCountryCode } from "@transcend-io/privacy-types"; //#region src/experience.d.ts interface Region { /** A country's ISO code */ country: IsoCountryCode; /** A country subdivision ISO code */ countrySubDivision?: string; } interface ExperiencePurposeInput { /** name of the purpose */ purpose: Purpose; /** opt out by default */ defaultOptOut: boolean; } interface ExperienceInput { /** The regime determining the default experience */ name: PrivacyRegime; /** The display name of the experience */ displayName: string; /** A list of regions to be included/not included in this experience */ regions: Region[]; /** A list of browser languages that this experience applies to */ browserLanguages: string[]; /** A list of browser time zones that this experience applies to */ browserTimeZones: string[]; /** Whether the listed regions are included or excluded from the experience */ operator: RegionsOperator; /** If data subject linked to multiple experiences, display priority for experiences. Lower number, higher priority. */ displayPriority: number; /** The view state to display on transcend.showConsentManager() */ viewState: InitialViewState; /** experience purposes to be added */ experiencePurposeInputs: ExperiencePurposeInput[]; /** Time in months after which a user's opt-in consent should expire */ consentExpiry: number; /** Behavior to exhibit when the user's consent has expired */ onConsentExpiry: OnConsentExpiry; } declare const REGIME_REGIONS: Record; declare const REGIME_LANGUAGES: Record; declare const REGIME_CONSENT_EXPIRY: Record; declare const REGIME_ON_CONSENT_EXPIRY: Record; /** * construct default experience for regime * @param regime - regime * @returns ExperienceInput */ declare function defaultExperience(regime: PrivacyRegime): ExperienceInput; declare const DEFAULT_EXPERIENCES: { Unknown: ExperienceInput; CPRA: ExperienceInput; GDPR: ExperienceInput; LGPD: ExperienceInput; CDPA: ExperienceInput; CPA: ExperienceInput; NEVADA_SB220: ExperienceInput; nFADP: ExperienceInput; US_DNSS: ExperienceInput; }; //#endregion export { DEFAULT_EXPERIENCES, ExperienceInput, ExperiencePurposeInput, REGIME_CONSENT_EXPIRY, REGIME_LANGUAGES, REGIME_ON_CONSENT_EXPIRY, REGIME_REGIONS, Region, defaultExperience }; //# sourceMappingURL=experience.d.mts.map