/** * Vendored from `ordered-binary@1.5.3/index.js` with one targeted edit: * the `readString` definition (originally a dynamically-generated * unrolled-loop function) is replaced with a hand-written interpreted * equivalent that does the same work without code-generation-from-strings. * * Why vendor: upstream has no CSP-safe build, and the codegen is a * module-init-time string-passed-to-evaluator that trips MV3 CSP * (`script-src 'self' 'wasm-unsafe-eval'`). The codegen is a perf * optimization on the string-decoding path only — the interpreted * version is functionally identical, just slower per call. * * Parity with upstream is enforced by `ordered-binary-browser.test.ts`, * which compares byte-exact output for a representative key set on every * Node-mode test run. If `ordered-binary` is bumped, re-vendor by * recopying upstream and reapplying the patch in the section marked * `// CSP PATCH BEGIN` ... `// CSP PATCH END`. */ export declare function writeKey(key: any, target: any, position: any, inSequence: any): any; export declare function readKey(buffer: any, start: any, end: any, inSequence: any): any; export declare const enableNullTermination: () => boolean; export declare const encoder: { writeKey: typeof writeKey; readKey: typeof readKey; enableNullTermination: () => boolean; }; export declare const toBufferKey: (key: any) => any; export declare const fromBufferKey: (sourceBuffer: any) => any; export declare function compareKeys(a: any, b: any): any; export declare const MINIMUM_KEY: null; export declare const MAXIMUM_KEY: Uint8Array; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXJlZC1iaW5hcnktYnJvd3Nlci5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NxbGl0ZS1vcGZzL2ludGVybmFsL29yZGVyZWQtYmluYXJ5LWJyb3dzZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBaUJHO0FBNEJILHdCQUFnQixRQUFRLENBQUMsR0FBRyxLQUFBLEVBQUUsTUFBTSxLQUFBLEVBQUUsUUFBUSxLQUFBLEVBQUUsVUFBVSxLQUFBLE9Bd0p6RDtBQUdELHdCQUFnQixPQUFPLENBQUMsTUFBTSxLQUFBLEVBQUUsS0FBSyxLQUFBLEVBQUUsR0FBRyxLQUFBLEVBQUUsVUFBVSxLQUFBLE9BK0ZyRDtBQUNELGVBQU8sTUFBTSxxQkFBcUIsZUFBK0IsQ0FBQztBQUVsRSxlQUFPLE1BQU0sT0FBTzs7OztDQUluQixDQUFDO0FBS0YsZUFBTyxNQUFNLFdBQVcsbUJBdUJ2QixDQUFDO0FBQ0YsZUFBTyxNQUFNLGFBQWEsNEJBRXpCLENBQUM7QUErRUYsd0JBQWdCLFdBQVcsQ0FBQyxDQUFDLEtBQUEsRUFBRSxDQUFDLEtBQUEsT0EwQy9CO0FBUUQsZUFBTyxNQUFNLFdBQVcsTUFBTyxDQUFDO0FBQ2hDLGVBQU8sTUFBTSxXQUFXLHlCQUF5QixDQUFDIn0=