import React from 'react'; export interface CitationProps extends Omit, 'children'> { /** The marker shown inline — usually a number matching the footer list. */ index: number | string; /** * What is being cited. Required: it is the link's accessible name, and a * citation a reader cannot identify without following it is not attribution. */ source: string; /** Where it goes. Omit for a source with no address — a document, a call. */ href?: string; /** The accessible name — "Source 1: " in English. */ label?: string; } export interface CitationListProps extends React.OlHTMLAttributes { children?: React.ReactNode; /** Heading above the list. Rendered as plain text, not a heading element. */ label?: React.ReactNode; } export interface CitationListItemProps extends React.LiHTMLAttributes { index: number | string; source: string; href?: string; /** The quoted or summarised passage this citation supports. */ children?: React.ReactNode; } /** * Citation — the inline marker. * * THE MARKER IS NOT THE NAME. Rendered naively, a superscript "1" announces as * "link, 1", which tells a screen-reader user nothing about whether to follow * it. The visible marker stays a number; the accessible name is * "Source 1: ". The number is for the sighted reader's eye and the * sentence is for everyone. * * NOT A TOOLTIP. A tooltip cannot be reached on touch and closes on the way to * it; attribution has to survive both. It is a real link, or a real * non-interactive marker when there is nowhere to go. * * WITHOUT `href` IT IS NOT A LINK. A citation to a phone call or an internal * document has no address, and rendering a dead anchor for it puts an * unfollowable link in the page's link list. It becomes a plain marked-up * reference instead. */ export declare const Citation: React.ForwardRefExoticComponent>; /** * The footer list. An `
    ` so the numbering is structural rather than typed * into each row, and so a screen reader can say how many sources there are * before the reader commits to hearing them. */ export declare const CitationList: React.ForwardRefExoticComponent>; export declare const CitationListItem: React.ForwardRefExoticComponent>; //# sourceMappingURL=Citation.d.ts.map