import react__default, { ReactNode } from 'react'; interface HelmetProps { children?: ReactNode; /** * A default title to use unchanged when no title is provided. * * Equivalent to react-helmet's `defaultTitle`. */ defaultTitle?: string; /** * A template for the title. Use `%s` as a placeholder for the page title. * The template is not applied to `defaultTitle`. * * @example `%s | My Site` */ titleTemplate?: string; /** * Called after the document head has been updated in the browser. * * Equivalent to react-helmet's `onChangeClientState`. * * @param newState - The new head state after rendering. * @param addedTags - Always empty — unhead manages DOM diffing internally. * @param removedTags - Always empty — unhead manages DOM diffing internally. */ onChangeClientState?: (newState: Record, addedTags: Record, removedTags: Record) => void; /** * Whether to encode special characters in attributes. * * @default true * @deprecated Unhead handles encoding automatically. This prop is accepted for compatibility but has no effect. */ encodeSpecialCharacters?: boolean; /** * Whether to defer DOM updates until the browser is idle. * * @default true * @deprecated Unhead batches DOM updates automatically. This prop is accepted for compatibility but has no effect. */ defer?: boolean; title?: string; base?: Record; meta?: Array>; link?: Array>; script?: Array>; style?: Array>; noscript?: Array>; htmlAttributes?: Record; bodyAttributes?: Record; } /** * A react-helmet compatible component powered by unhead. * * Drop-in replacement for `` — import from `@unhead/react/helmet` instead of `react-helmet`. * * @example * ```tsx * import { Helmet } from '@unhead/react/helmet' * * console.log(newState)} * > * Page Title * * * ``` */ declare const Helmet: react__default.FC; export { Helmet }; export type { HelmetProps };