import { CSSProperties, ReactElement } from 'react'; import { ChartEmptyState, ChartLoadingStyle, ChartMotion, ChartStyle, ChartSurface } from '../types'; import { BookLevel } from './indicators'; export interface OrderBookProps { /** Optional visible table caption. */ title?: string; /** Show the caption. Column headings remain available. Defaults to true. */ header?: boolean; /** Accessible name, independent of the visible caption. */ 'aria-label'?: string; bids: readonly BookLevel[]; asks: readonly BookLevel[]; /** Price levels shown on each side of the spread. Defaults to 8. */ levels?: number; /** Draws each level's bar as a solid block with a lit roof and a shaded end. */ depth?: boolean; /** Price format, e.g. `{ style: 'currency', currency: 'USD' }`. */ valueFormat?: Intl.NumberFormatOptions; /** Size format. Defaults to compact numbers. */ sizeFormat?: Intl.NumberFormatOptions; locale?: string; /** Briefly highlight levels whose size changed. Defaults to true; reduced motion turns it off. */ flash?: boolean; surface?: ChartSurface; loading?: boolean; loadingStyle?: ChartLoadingStyle; /** * What the card shows when there is no data: `dots` (default), the chart's own `shape`, your * own element such as `No book yet`, or `null` for nothing. */ empty?: ChartEmptyState; motion?: ChartMotion; className?: string; style?: CSSProperties | ChartStyle; } /** * A price ladder: asks above, bids below, a spread row between, and a depth bar behind each * level sized by its running total. It is a real table, so screen readers read it row by row. */ export declare function OrderBook({ title, header, 'aria-label': ariaLabel, bids, asks, levels, depth, valueFormat, sizeFormat, locale, flash, surface, loading, loadingStyle, empty: emptyState, motion, className, style, }: OrderBookProps): ReactElement;