/** * Appends a cache-busting query parameter (file modification timestamp) to an asset path. * This forces browsers to re-fetch the file when it changes, preventing stale cache issues. * @param {string} filePath Path to an asset file (CSS, JS, images, etc.) relative to the public directory. * @param {string} baseUrl Base URL to prepend (e.g., CDN origin). Defaults to none (undefined). * @returns {string} The asset path with a timestamp query parameter, or the original path if the file does not exist. * @example * ```handlebars * {{!-- results in: /assets/style.css?1620526340463 --}} * {{cacheBusting '/assets/style.css'}} * * {{!-- results in: //cdn.example.com/assets/style.css?1620526340463 --}} * {{cacheBusting '/assets/style.css' '//cdn.example.com'}} * ``` */ export declare const cacheBusting: (filePath: string, baseUrl?: string) => string; /** * Strips HTML tags from a string, with optional allowlist and replacement string. * @param {string} str The HTML string to sanitize. * @param {string|string[]} allowedTags Tags to preserve (e.g., `''` or `['', '']`). Defaults to `[]`. * @param {string} replacement String to insert in place of removed tags. Defaults to `''`. * @returns {string} The sanitized string with HTML tags removed (except allowed ones). * @example * ```handlebars * {{!-- results in: lorem ipsum dolor sit amet --}} * {{{stripTags '

lorem ipsum dolor sit amet

'}}} * * {{!-- results in: lorem ipsum dolor sit amet --}} * {{{stripTags '

lorem ipsum dolor sit amet

' '' ''}}} * * {{!-- results in: *lorem ipsum *dolor* *sit* amet* --}} * {{{stripTags '

lorem ipsum dolor sit amet

' [] '*'}}} * ``` */ export declare const stripTags: (str: string, allowedTags?: string | string[], replacement?: string) => string;