UNPKG

jtc-utils

Version:
25 lines 972 B
import type { Charset, CharsetDecodeOptions, CharsetDecoder, CharsetDecoderOptions, CharsetEncodeOptions, CharsetEncoder, CharsetEncoderOptions } from "./charset.ts"; declare class Cp930Charset implements Charset { get name(): string; createDecoder(options?: CharsetDecoderOptions): Cp930Decoder; createEncoder(options?: CharsetEncoderOptions): Cp930Encoder; isUnicode(): boolean; isEbcdic(): boolean; } declare class Cp930Decoder implements CharsetDecoder { private fatal; private state?; constructor(options?: CharsetDecoderOptions); decode(input: Uint8Array, options?: CharsetDecodeOptions): string; } declare class Cp930Encoder implements CharsetEncoder { private fatal; constructor(options?: { fatal?: boolean; }); canEncode(str: string): boolean; encode(str: string, options?: CharsetEncodeOptions): Uint8Array; } export declare const cp930: Cp930Charset; export {}; //# sourceMappingURL=cp930.d.ts.map