import { t as Money } from "./index-DB2HlD4k.js"; //#region src/core/seo/json-ld.d.ts /** One schema.org node, ready for {@link jsonLdScript}. */ type JsonLd = { "@context"?: string; "@type": string; } & Record; /** The settings fields the organization builders read. A `site_settings` row fits as it is. */ interface JsonLdSettings { siteName?: string | null; tagline?: string | null; logoUrl?: string | null; contactEmail?: string | null; contactPhone?: string | null; /** `[{ label, href }]`, as the Settings panel stores it. */ socialLinks?: unknown; } /** A schema.org `PostalAddress`, in parts. Store them as parts, not one text block. */ interface JsonLdAddress { streetAddress?: string; addressLocality?: string; addressRegion?: string; postalCode?: string; /** ISO 3166-1 alpha-2, such as `"US"`. */ addressCountry?: string; } /** The days schema.org names in opening hours. */ type JsonLdDay = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; /** One run of opening hours: these days, from `opens` to `closes`, as `HH:MM`. */ interface JsonLdOpeningHours { days: readonly JsonLdDay[]; opens: string; closes: string; } /** The facts a local business needs beyond its settings row. All are the site's. */ interface LocalBusinessFacts { /** The schema.org type: `"LocalBusiness"` or a subtype, such as `"CafeOrCoffeeShop"`. */ type: string; address?: JsonLdAddress; openingHours?: readonly JsonLdOpeningHours[]; /** Shown as a range, such as `"$$"`. */ priceRange?: string; geo?: { latitude: number; longitude: number; }; } /** A product, in a shape no commerce provider owns: map yours onto it. */ interface JsonLdProduct { name: string; description?: string | null; /** One URL or several; relative ones resolve against `origin`. */ image?: string | readonly string[] | null; sku?: string | null; brand?: string | null; /** The product page, relative or absolute. */ url?: string | null; /** The price in the currency's minor unit, as commerce stores it. */ price?: Money | null; availability?: "InStock" | "OutOfStock" | "PreOrder" | "BackOrder" | "SoldOut"; } /** One step of a breadcrumb trail: its label and path. */ interface JsonLdCrumb { name: string; path: string; } /** Where relative URLs resolve. */ interface JsonLdOptions { /** The site's public origin, `https://example.com`. */ origin: string; } /** * An `Organization` node from the settings row: the site name, the home URL, * the logo, the tagline, the contact email and phone, and the social links as * `sameAs`. `undefined` when the settings have no site name. */ declare function organizationJsonLd(settings: JsonLdSettings, options: JsonLdOptions): JsonLd | undefined; /** * A local business node: the organization's facts from the settings row, plus * the type, address, opening hours, price range, and location from `facts`. * `undefined` when the settings have no site name. */ declare function localBusinessJsonLd(settings: JsonLdSettings, facts: LocalBusinessFacts, options: JsonLdOptions): JsonLd | undefined; /** * A `Product` node, with an `Offer` when it has a price. The price is written * in major units at the currency's own precision (`"12.50"` USD, `"1250"` JPY), * with its ISO 4217 code. */ declare function productJsonLd(product: JsonLdProduct, options: JsonLdOptions): JsonLd; /** A `BreadcrumbList` from a trail of `{ name, path }`, first step first. */ declare function breadcrumbJsonLd(trail: readonly JsonLdCrumb[], options: JsonLdOptions): JsonLd; /** * One node as a `` stays inside * the string rather than closing the element. */ declare function jsonLdScript(data: JsonLd): string; //#endregion export { JsonLdOpeningHours as a, JsonLdSettings as c, jsonLdScript as d, localBusinessJsonLd as f, JsonLdDay as i, LocalBusinessFacts as l, productJsonLd as m, JsonLdAddress as n, JsonLdOptions as o, organizationJsonLd as p, JsonLdCrumb as r, JsonLdProduct as s, JsonLd as t, breadcrumbJsonLd as u };