/** * SHA-256, and the UTF-8 encoding it runs over. * * `compiled-program.md` 2.14 makes `source.hash` the lowercase hexadecimal * SHA-256 of the UTF-8 source text, and a host records it against a chart, a * backtest run and a live process: it is what makes a result reproducible * months later. So it cannot be optional and it cannot come from a package, * because nothing under `src/core` may import one, and it cannot come from a * platform's own crypto either, because the same file has to run in a worker, * on a server and inside somebody else's application. * * Written from FIPS 180-4. It is small, it is exact, and it is tested against * the published vectors rather than against itself. */ /** * UTF-8 bytes of a string, counting by code point. * * A lone surrogate cannot be encoded and becomes the replacement character, * which is what every other encoder does and what the lexer has already made * unreachable from a source file. */ export declare function utf8(text: string): Uint8Array; export declare function sha256(text: string): string; //# sourceMappingURL=sha256.d.ts.map