/** * A text encoder interface. */ export interface ITextEncoder { /** * Number of bytes written in the last call to {@link encode} */ length: number; /** * Encodes the text and returns the Uint8Array it was written to. The length * of data written to the array can be found in {@link length}. * * The data returned in the array is only valid until the next call to encode. */ encode(text: string): Uint8Array; } export declare const makeTextEncoder: () => ITextEncoder;