import React from 'react'; import { Language, PrismTheme } from 'prism-react-renderer'; import { DefaultProps, Selectors, MantineColor, MantineNumberSize, MantineTheme } from '@mantine/core'; import useStyles from './Prism.styles'; export type PrismStylesNames = Selectors; export interface PrismProps extends DefaultProps, Omit, 'children'> { variant?: string; /** Code which will be highlighted */ children: string; /** Programming language that should be highlighted */ language: Language; /** True to remove copy to clipboard button */ noCopy?: boolean; /** Copy button tooltip */ copyLabel?: string; /** Copy button tooltip in copied state */ copiedLabel?: string; /** Display line numbers */ withLineNumbers?: boolean; /** Highlight line at given line number with color from theme.colors */ highlightLines?: Record; /** Force color scheme, defaults to theme.colorScheme */ colorScheme?: 'dark' | 'light'; /** Change scroll area component */ scrollAreaComponent?: any; /** Defines whether the code should be trimmed, defaults to true */ trim?: boolean; /** Key of theme.radius or any valid CSS value to set border-radius, theme.defaultRadius by default */ radius?: MantineNumberSize; /** Provide custom color scheme */ getPrismTheme?(theme: MantineTheme, colorScheme: 'light' | 'dark'): PrismTheme; } export declare const Prism: React.ForwardRefExoticComponent & React.RefAttributes>; //# sourceMappingURL=Prism.d.ts.map