import type { Gettable } from "../utils/basic.cjs"; /** * `%s` will be replaced by the title if the template is a `string` */ export type UseTitleOptionsTemplate = string | ((title: string) => string); export type UseTitleOptions = { /** * Restore the original title when unmounted * * @defaultValue false */ restoreOnUnmount?: boolean; /** * A template to format the title * * @defaultValue '%s' */ template?: UseTitleOptionsTemplate; }; /** * A React Hook that helps to manage the title of the document. */ export declare function useTitle(newTitle: Gettable, options?: UseTitleOptions): () => void;