/** * @license * Copyright Google LLC * SPDX-License-Identifier: Apache-2.0 */ import '../environment/dev.js'; import { SafeHtml } from '../internals/html_impl.js'; import { TrustedResourceUrl } from '../internals/resource_url_impl.js'; import { SafeScript } from '../internals/script_impl.js'; import { SafeStyleSheet } from '../internals/style_sheet_impl.js'; /** * Performs a "reviewed conversion" to SafeHtml from a plain string that is * known to satisfy the SafeHtml type contract. * * IMPORTANT: Uses of this method must be carefully security-reviewed to ensure * that the value of `html` satisfies the SafeHtml type contract in all * possible program states. An appropriate `justification` must be provided * explaining why this particular use of the function is safe. */ export declare function htmlSafeByReview(html: string, options: { justification: string; }): SafeHtml; /** * Performs a "reviewed conversion" to SafeScript from a plain string that * is known to satisfy the SafeScript type contract. * * IMPORTANT: Uses of this method must be carefully security-reviewed to ensure * that the value of `script` satisfies the SafeScript type contract in * all possible program states. An appropriate `justification` must be provided * explaining why this particular use of the function is safe. */ export declare function scriptSafeByReview(script: string, options: { justification: string; }): SafeScript; /** * Performs a "reviewed conversion" to TrustedResourceUrl from a plain string * that is known to satisfy the SafeUrl type contract. * * IMPORTANT: Uses of this method must be carefully security-reviewed to ensure * that the value of `url` satisfies the TrustedResourceUrl type * contract in all possible program states. An appropriate `justification` must * be provided explaining why this particular use of the function is safe. */ export declare function resourceUrlSafeByReview(url: string, options: { justification: string; }): TrustedResourceUrl; /** * Performs a "reviewed conversion" to SafeStyleSheet from a plain string that * is known to satisfy the SafeStyleSheet type contract. * * IMPORTANT: Uses of this method must be carefully security-reviewed to ensure * that the value of `stylesheet` satisfies the SafeStyleSheet type * contract in all possible program states. An appropriate `justification` must * be provided explaining why this particular use of the function is safe; this * may include a security review ticket number. */ export declare function styleSheetSafeByReview(stylesheet: string, options: { justification: string; }): SafeStyleSheet;