import type { ContainerWidth } from '../@types/global'; import type { ReferralItem, LinkTarget } from './types'; type ReferralBlockWidth = Exclude; interface Props { /** * Section ID, which is often the URL path to the section page on reuters.com. * * Note that not all section pages will be available in the recent stories by section API. */ section?: string; /** * Collection alias, as defined in Arc Collections editor. */ collection?: string; /** * Provide your own referrals instead of fetching recent stories from * Reuters.com. When set, the `section`/`collection` fetch is skipped and * these stories are rendered as-is. */ stories?: ReferralItem[]; /** * Number of referrals to show. */ number?: number; /** * Link [target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target), e.g., `_blank` or `_parent`. */ linkTarget?: LinkTarget; /** * Add a heading to the referral block. */ heading?: string; /** * Width of the component within the text well: 'normal' | 'wide' | 'wider' | 'widest' | 'fluid' */ width?: ReferralBlockWidth; /** Add an ID to target with SCSS. */ id?: string; /** Add a class to target with SCSS. */ class?: string; } /** * A block of related-story cards (rendered as Referral children), fetching recent Reuters.com stories by section or taking supplied ones. * * [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-page-furniture-referralblock--docs) */ declare const ReferralBlock: import("svelte").Component; type ReferralBlock = ReturnType; export default ReferralBlock;