import type { IWhiteList, IFilterXSSOptions } from 'xss'; interface IWpKsesPostOptions extends IFilterXSSOptions { svg?: boolean; } /** * Sanitize HTML content by the wp_kses_post() requirements * * #### Usage * * ```tsx * import { wpKsesPost } from '@headstartwp/core'; * wpKsesPost(html); * ``` * * @param content The content to sanitize. * @param allowList Optional. The list of allowed HTML tags and attributes. If not set, the default allow list will be used. * @param options Optional. IWpKsesPostOptions. * * @see https://codex.wordpress.org/Function_Reference/wp_kses_post * * @category DOM Helpers * * @returns Sanitized string of HTML. */ export declare const wpKsesPost: (content: string, allowList?: IWhiteList, options?: IWpKsesPostOptions) => string; /** * Default Allowed HTML Attributes * * @see https://codex.wordpress.org/Function_Reference/wp_kses_post * * @returns Array of allowed attributes for tags. */ export declare const ksesAllowedList: IWhiteList; export {};