import type { FactoryPayload } from '../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib' import type { EmotionSx } from '@mantine/emotion' import type { EmotionStyles } from '../emotion/index.cjs' import type { ShadingColor } from '../theme/colors.cjs' import type { Color } from '../theme/theme.cjs' declare module '../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib' { interface MantineThemeColorsOverride { colors: Record } interface StylesApiPropsOverride { styles?: EmotionStyles } interface BoxProps { sx?: EmotionSx } } declare module '@mantine/core' { interface MantineThemeColorsOverride { colors: Record } interface StylesApiPropsOverride { styles?: EmotionStyles } interface BoxProps { sx?: EmotionSx } } import { MantineColor, MantineTheme, MantineRadius, BoxProps, ElementProps, Factory, StylesApiProps } from '../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib'; import { Language, PrismTheme } from 'prism-react-renderer'; export type PrismStylesNames = 'scrollArea' | 'root' | 'code' | 'copy' | 'line' | 'lineNumber' | 'lineContent'; export interface PrismProps extends BoxProps, StylesApiProps, ElementProps<'div'> { /** 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 number to set border-radius in px */ radius?: MantineRadius; /** Provide custom color scheme */ getPrismTheme?(theme: MantineTheme, colorScheme: 'light' | 'dark'): PrismTheme; } export type PrismFactory = Factory<{ props: PrismProps; ref: HTMLDivElement; stylesNames: PrismStylesNames; }>; export declare const Prism: import('../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib').MantineComponent<{ props: PrismProps; ref: HTMLDivElement; stylesNames: PrismStylesNames; }>;