import ByteBuffer from '../../../java/nio/ByteBuffer.js'; import CharBuffer from '../../../java/nio/CharBuffer.js'; import Charset from './Charset.js'; import CoderResult from './CoderResult.js'; import CodingErrorAction from './CodingErrorAction.js'; export default interface CharsetEncoder { averageBytesPerChar(): number; canEncode(c: string): boolean; canEncode(cs: any): boolean; charset(): Charset; encode(_in: CharBuffer): ByteBuffer; encode(_in: CharBuffer, out: ByteBuffer, endOfInput: boolean): CoderResult; flush(out: ByteBuffer): CoderResult; isLegalReplacement(repl: Array): boolean; malformedInputAction(): CodingErrorAction; maxBytesPerChar(): number; onMalformedInput(newAction: CodingErrorAction): CharsetEncoder; onUnmappableCharacter(newAction: CodingErrorAction): CharsetEncoder; replaceWith(newReplacement: Array): CharsetEncoder; replacement(): Array; reset(): CharsetEncoder; unmappableCharacterAction(): CodingErrorAction; } export default class CharsetEncoder { static get $javaClass(): any; }