UNPKG

682 BTypeScriptView Raw
1/// <reference types="./css" />
2/// <reference types="./macro" />
3/// <reference types="./style" />
4/// <reference types="./global" />
5
6declare module 'styled-jsx' {
7 import type { JSX } from "react";
8
9 export type StyledJsxStyleRegistry = {
10 styles(options?: { nonce?: string }): JSX.Element[]
11 flush(): void
12 add(props: any): void
13 remove(props: any): void
14 }
15 export function useStyleRegistry(): StyledJsxStyleRegistry
16 export function StyleRegistry({
17 children,
18 registry
19 }: {
20 children: JSX.Element | import('react').ReactNode
21 registry?: StyledJsxStyleRegistry
22 }): JSX.Element
23 export function createStyleRegistry(): StyledJsxStyleRegistry
24}
25
\No newline at end of file