import React from 'react'; import { type CSSObject } from 'restyle'; export interface LineNumbersProps { /** A string of comma separated lines and ranges to highlight. */ highlightRanges?: string; /** CSS object to apply to the line numbers container. */ css?: CSSObject; /** Class name to apply to the line numbers container. */ className?: string; /** Style to apply to the line numbers container. */ style?: React.CSSProperties; } /** Renders line numbers for the `CodeBlock` component. */ export declare function LineNumbers({ highlightRanges: highlightRangesProp, css, className, style, }: LineNumbersProps): Promise; /** Calculate which lines to highlight based on the range meta string added by the rehype plugin. */ export declare function calculateLinesToHighlight(ranges: string | undefined): (index: number) => boolean;