import React from 'react'; import PropTypes from 'prop-types'; export interface TreeItem { nodeType: 'component'; instance?: { replaces: { [key: string]: React.ReactElement; }; keywords: { [key: string]: React.ReactElement; }; }; props: {}; rendered: string | (string | TreeItem)[]; type: any; } export declare type Tree = string | TreeItem | (string | TreeItem)[]; export declare function collectString(tree: Tree): string; export declare function keyword(instance: any, name: string, regexp: RegExp, component: React.ReactElement): string; export declare const PrettyContext: { ident: PropTypes.Requireable; }; export declare class Pretty extends React.Component<{ children: React.ReactElement; }> { render(): JSX.Element; } export declare class PrettyCode

extends React.Component

{ static contextTypes: { ident: PropTypes.Requireable; }; private replaces; private keywords; id(name: string, jsx: React.ReactElement): string; doc(jsx: React.ReactElement): string; keyword(id: string, regexp: RegExp, component: React.ReactElement): void; } export declare function prettyRender(subtree: React.ReactElement): any[]; //# sourceMappingURL=prettier.d.ts.map