import { type SanitizeHtmlOptions } from '@leaflink/stash-utils';
import type { ObjectDirective } from 'vue';
/**
* Value for `v-sanitize-html`. Pass an HTML string, or an object to tighten the
* allowlist for one use site (e.g. `{ html, options: { ALLOWED_TAGS: ['b'] } }`).
*/
export type SanitizeHtmlBinding = string | null | undefined | {
html: string | null | undefined;
options?: SanitizeHtmlOptions;
};
/**
* Render an HTML string as sanitized markup — a safe drop-in for `v-html`. Strips
* script tags, event-handler attributes, and javascript: URLs before setting
* `innerHTML`. Sanitizes in the browser only (mounted/updated), so it is SSR-safe.
*/
declare const sanitizeHtmlDirective: ObjectDirective;
export default sanitizeHtmlDirective;