license import { RequestDetails } from '../io/types' ; /**
 * At any given time a single platform is active and represents and
 * implementation of this interface. In practice, a platform is an environment
 * where TensorFlow.js can be executed, e.g. the browser or Node.js.
 */ export interface Platform { param path param init fetch ( path , requestInits ? , options ? ) : Promise < Response > ; /**
     * Returns the current high-resolution time in milliseconds relative to an
     * arbitrary time in the past. It works across different platforms (node.js,
     * browsers).
     */ now ( ) : number ; /**
     * Encode the provided string into an array of bytes using the provided
     * encoding.
     */ encode ( text , encoding ) : Uint8Array ; /** Decode the provided bytes into a string using the provided encoding. */ decode ( bytes , encoding ) : string ; }