import { type GetSEOMetadataQuery } from '@farfetch/blackout-client'; import type { AppIconLinks, Link, Meta } from '../types/index.js'; import type { UseSeoMetadataOptions } from './types/useSeoMetadataOptions.types.js'; /** * Hook to return seo metadata to populate document head. * * @param data - object that receives SEO query, icon links, additional links, metas and options * * @returns - Returns actions and SEO metadata state for a given path. */ declare const useSeoMetadata: ({ query, appIconLinks, links, metas, }: { query: GetSEOMetadataQuery; appIconLinks?: Partial<{ appleIcons: { href: string; sizes: string; }[]; icons: { href: string; sizes: string; }[]; maskIcon: Partial<{ rel: string; href?: string | undefined; color?: string | undefined; }>; }> | undefined; links?: Link[] | undefined; metas?: Meta[] | undefined; }, options?: UseSeoMetadataOptions) => { error: import("@farfetch/blackout-client").BlackoutError | null | undefined; isLoading: boolean | undefined; isFetched: boolean; data: { title: string | null; description: string | null; canonical: string | null; meta: ({ name: string; content: string; } | { content?: undefined; } | { [x: string]: string; content: string; })[]; link: ({ href: string; rel: string; } | { rel: string; color: string | undefined; href: string | undefined; })[]; seo: import("@farfetch/blackout-client").SEOMetadata; } | undefined; actions: { fetch: (query?: GetSEOMetadataQuery | undefined, config?: import("@farfetch/blackout-client").Config | undefined) => Promise; }; }; export default useSeoMetadata;