import type { Snippet } from 'svelte'; import type { HeadlineSize } from '../@types/global'; export interface Props { /** Headline, parsed as an _inline_ markdown string in an `h1` element OR as a custom snippet. */ hed: string | Snippet; /** * Optional snippet for a custom hero graphic, photo, etc. */ children?: Snippet; /** Set to `false` for inline hero media */ stacked?: boolean; /** * Path to the background hero image */ img?: string; /** * ARIA description, passed in as a markdown string. */ ariaDescription?: string; /** * Notes to the graphic, passed in as a markdown string. */ notes?: string; /** Add classes to the block tag to target it with custom CSS. */ class?: string; /** * Headline size: small, normal, big, bigger, biggest */ hedSize?: HeadlineSize; /** * Headline horizontal alignment: left, center, right */ hedAlign?: 'left' | 'center' | 'right'; /** * Width of the headline: normal, wide, wider, widest */ hedWidth?: 'normal' | 'wide' | 'wider' | 'widest'; /** * Dek, parsed as a markdown string OR as a custom snippet. */ dek?: string | Snippet; /** * Section title */ section?: string; /** * Array of author names, which will be slugified to create links to Reuters author pages */ authors?: string[]; /** * Publish time as a datetime string. */ publishTime: string; /** * Update time as a datetime string. */ updateTime?: string; /** * Width of the hero graphic: normal, wide, wider, widest */ width?: 'normal' | 'wide' | 'wider' | 'widest'; /** Set to true for embeds. */ embedded?: boolean; /** * Custom function that returns an author page URL. */ getAuthorPage?: (author: string) => string; /** * Optional snippet for a custom byline. */ byline?: Snippet; /** * Optional snippet for a custom published dateline. */ published?: Snippet; /** * Optional snippet for a custom updated dateline. */ updated?: Snippet; } /** * A full-viewport page opener composing Headline, Byline and hero media (background image, FeaturePhoto or custom graphic). * * [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-text-elements-heroheadline--docs) */ declare const HeroHeadline: import("svelte").Component; type HeroHeadline = ReturnType; export default HeroHeadline;