*/ public function read(): Promise; /** * @return Promise */ public function write(string $data): Promise; public function close(): void; }