UNPKG

1.14 kBTypeScriptView Raw
1// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
2// TypeScript Version: 2.2
3import { EmotionCache } from "./@emotion-cache-node_modules-@emotion-utils-types-index";
4export { EmotionCache };
5export interface StylisElement {
6 type: string;
7 value: string;
8 props: Array<string> | string;
9 root: StylisElement | null;
10 parent: StylisElement | null;
11 children: Array<StylisElement> | string;
12 line: number;
13 column: number;
14 length: number;
15 return: string;
16}
17export type StylisPluginCallback = (element: StylisElement, index: number, children: Array<StylisElement>, callback: StylisPluginCallback) => string | void;
18export type StylisPlugin = (element: StylisElement, index: number, children: Array<StylisElement>, callback: StylisPluginCallback) => string | void;
19export interface Options {
20 nonce?: string;
21 stylisPlugins?: Array<StylisPlugin>;
22 key: string;
23 container?: HTMLElement;
24 speedy?: boolean;
25 /** @deprecate use `insertionPoint` instead */
26 prepend?: boolean;
27 insertionPoint?: HTMLElement;
28}
29export default function createCache(options: Options): EmotionCache;
\No newline at end of file