/** A class that converts strings to UInt8Array buffers. */ export declare class TextEncoder { /** Always returns 'utf-8'. */ get encoding(): string; /** Encodes the given string to a UTF-8 encoded buffer. */ encode(buf: string): Uint8Array; }