ServerStyleSheet.d.ts 544 B

12345678910111213141516
  1. /// <reference types="node" />
  2. import React from 'react';
  3. import type * as streamInternal from 'stream';
  4. import { Readable } from 'stream';
  5. import StyleSheet from '../sheet';
  6. export default class ServerStyleSheet {
  7. instance: StyleSheet;
  8. sealed: boolean;
  9. constructor();
  10. _emitSheetCSS: () => string;
  11. collectStyles(children: any): React.JSX.Element;
  12. getStyleTags: () => string;
  13. getStyleElement: () => React.JSX.Element[];
  14. interleaveWithNodeStream(input: Readable): streamInternal.Transform;
  15. seal: () => void;
  16. }