interface SetPageMetaProps { /** Sets title, meta:og:title. Is postfixed by ` - {siteName}` **/ title: string; /** Sets meta:og:site_name **/ siteName?: string; /** Sets meta:description **/ description?: string; /** Sets meta:og:image **/ image?: string; /** Sets meta:og:locale **/ locale?: string; } interface SetPageMetaReturn { /** The current page title, meta:og:title. Is postfixed by ` - {siteName}` **/ title: string; /** The current meta:og:site_name **/ siteName: string; /** The current meta:description **/ description: string; /** The current meta:og:image **/ image: string; /** The current meta:og:locale **/ locale: string; } /** * Allows setting common page attrs. * * - Intelligently use the attrs, only setting if changed * - Resets back to initial if omitted, based on initial introspection * - Stores element handles in memory to remove need to query the dom * on every update * * > Note: Set `setPageMeta.testMode=true` to disable setPageMeta for testing * * @param * object: an object of key/val pairs of meta attrs to set * * @returns * object: an object of key/val pairs of meta attrs that are currently set * * @dependency * * The page should already have default meta tags. Example: * * ```html * React Template * * * * * * * * * ``` * * @example * * ```typescript * const {description} = setPageMeta({ * title: `Hello World`, * description: 'This page is awesome', * }) * ``` */ export declare function setPageMeta(p: SetPageMetaProps): SetPageMetaReturn; export declare namespace setPageMeta { var testMode: boolean; } export {};