1 |
|
2 |
|
3 |
|
4 | export default function rehypeReact(options: Options): void
|
5 | export type Root = import('hast').Root
|
6 | export type Element = import('hast').Element
|
7 | export type ReactNode = import('react').ReactNode
|
8 | export type ReactElement = import('react').ReactElement<unknown>
|
9 | export type CreateElementLike = (
|
10 | name: any,
|
11 | props: any,
|
12 | ...children: ReactNode[]
|
13 | ) => ReactNode
|
14 | export type SharedOptions = {
|
15 | |
16 |
|
17 |
|
18 |
|
19 | createElement: CreateElementLike
|
20 | |
21 |
|
22 |
|
23 |
|
24 | Fragment?: ((props: any) => ReactNode) | undefined
|
25 | /**
|
26 | * React key prefix
|
27 | */
|
28 | prefix?: string | undefined
|
29 | }
|
30 | export type Options = SharedOptions &
|
31 | (
|
32 | | import('./complex-types').ComponentsWithNodeOptions
|
33 | | import('./complex-types').ComponentsWithoutNodeOptions
|
34 | )
|
35 |
|
\ | No newline at end of file |