import React from "react"; /** * From https://github.com/emotion-js/emotion/blob/0d47e57d143f96efd2846a1cac9e8bb29c0650fb/packages/hash/src/index.js */ declare function hash(str: string): string; /** * Only for tests */ export declare function _resetModuleState(): void; export declare class SSRProvider extends React.Component { render(): JSX.Element; } export interface CSSCompiler { (selector: string, css: string): string; } declare type Placeholders = string | number; export declare function createClassName(className: string, bemCSS: BEMCSS): { className: string; bemCSS: { asCSS(selector: string): string; asStyleTag(selector: string): (props: any) => JSX.Element; cssString: string; sourceMap: string; render: (reactElement: T, cssChunks: { className: string; cssString: string; sourceMap: string; }[]) => T; hash: typeof hash; }; }; export declare function createCSSTag(providedCompiler: CSSCompiler): { (style: string, sourceMap: string): { asCSS(selector: string): string; asStyleTag(selector: string): (props: any) => JSX.Element; cssString: string; sourceMap: string; render: (reactElement: T, cssChunks: { className: string; cssString: string; sourceMap: string; }[]) => T; hash: typeof hash; }; (literals: TemplateStringsArray, ...placeholders: Placeholders[]): { asCSS(selector: string): string; asStyleTag(selector: string): (props: any) => JSX.Element; cssString: string; sourceMap: string; render: (reactElement: T, cssChunks: { className: string; cssString: string; sourceMap: string; }[]) => T; hash: typeof hash; }; compiler: CSSCompiler; }; export declare type BEMCSS = ReturnType>; export {};