/** Names of all Trusted Types */ export type TrustedTypes = 'TrustedHTML' | 'TrustedScript' | 'TrustedScriptURL' ; /**
 * Trusted Types configuration used to match Trusted values in the assignments
 * to sinks.
 */ export interface TrustedTypesConfig { /**
     * A characteristic component of the absolute path of the definition file.
     */ modulePathMatcher : string ; /**
     * The fully qualified name of the trusted type to allow. E.g.
     * "global.TrustedHTML".
     */ typeName : TrustedTypes ; } /**
 * Create `TrustedTypesConfig` for the given Trusted Type.
 */ function createDefaultTrustedTypeConfig ( type ) { const config = { modulePathMatcher : '/node_modules/@types/trusted-types/' , typeName : type , } ; return config ; } /**
 * Trusted Types configuration allowing usage of `TrustedHTML` for a given rule.
 */ export const TRUSTED_HTML = createDefaultTrustedTypeConfig ( 'TrustedHTML' ) ; /**
 * Trusted Types configuration allowing usage of `TrustedScript` for a given
 * rule.
 */ export const TRUSTED_SCRIPT = createDefaultTrustedTypeConfig ( 'TrustedScript' ) ; /**
 * Trusted Types configuration allowing usage of `TrustedScriptURL` for a given
 * rule.
 */ export const TRUSTED_SCRIPT_URL = createDefaultTrustedTypeConfig ( 'TrustedScriptURL' ) ;