// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. import{Socket}from"./net.ts"; // Returns true when the given numeric fd is associated with a TTY and false otherwise.functionisatty(fd:number){if(typeof fd !=="number"){returnfalse;}try{returnDeno.isatty(fd);}catch(_){returnfalse;}} // TODO(kt3k): Implement tty.ReadStream classexportclassReadStreamextendsSocket{}// TODO(kt3k): Implement tty.WriteStream classexportclassWriteStreamextendsSocket{} export{ isatty };exportdefault{ isatty,WriteStream,ReadStream};