+/**
+ * A [brotli](https://brotli.org) encoding stream.
+ *
+ * > ***NOTE:***
+ * > This class has been added in v3.2.0.
+ */
+class Enbrotli extends \http\Encoding\Stream {
+ /**
+ * Default compression level.
+ */
+ const LEVEL_DEF = 4;
+ /**
+ * Least compression level.
+ */
+ const LEVEL_MIN = 1;
+ /**
+ * Greatest compression level.
+ */
+ const LEVEL_MAX = 11;
+ /**
+ * Default window bits.
+ */
+ const WBITS_DEF = 352;
+ /**
+ * Minimum window bits.
+ */
+ const WBITS_MIN = 160;
+ /**
+ * Maximum window bits.
+ */
+ const WBITS_MAX = 384;
+ /**
+ * Default compression mode.
+ */
+ const MODE_GENERIC = 0;
+ /**
+ * Compression mode for UTF-8 formatted text.
+ */
+ const MODE_TEXT = 4096;
+ /**
+ * Compression mode used in WOFF 2.0.
+ */
+ const MODE_FONT = 8192;
+ /**
+ * Encode data with brotli encoding.
+ *
+ * @param string $data The data to compress.
+ * @param int $flags Any compression tuning flags. See http\Encoding\Stream\Enbrotli and http\Encoding\Stream constants.
+ * @return string the compressed data.
+ */
+ function encode(string $data, int $flags = 0) {}
+}