/** * Interface for configuring the encoding module */ export type EncodingModuleConfig = { /** * Custom TextEncoder implementation to use instead of the global TextEncoder * Must conform to the WHATWG Encoding API */ textEncoderImpl?: typeof TextEncoder; /** * Custom TextDecoder implementation to use instead of the global TextDecoder * Must conform to the WHATWG Encoding API */ textDecoderImpl?: typeof TextDecoder; }; /** * Creates a complete encoding module implementation for the sandbox * * This module provides an implementation of the WHATWG Encoding Standard * (https://encoding.spec.whatwg.org/) including TextEncoder and TextDecoder * classes with methods like encode, encodeInto, and decode with proper * streaming and error handling support. * * The implementation uses a JavaScript polyfill that bridges to the host * environment's TextEncoder and TextDecoder implementations. */ declare const _default: (config?: EncodingModuleConfig) => import("../_mod_authoring").CageModule; export default _default;