import { i as TestRunEvidence } from "./test-run-model-CF2EYJOQ.mjs"; //#region src/test-run-canonical.d.ts /** Prefix of every test-run deployment admission id. */ declare const TEST_RUN_ADMISSION_PREFIX = "test-run:"; /** * Serializes a test-run evidence record canonically. * * Property order matches the record schema, targets sort by id, suites sort * by id then shard index, and selection identifiers sort lexicographically, * so equivalent records produce byte-identical JSON in every language. Call * validation before trusting the record; canonicalization does not make an * invalid record valid. */ declare function canonicalTestRunJson(evidence: TestRunEvidence): string; /** * Returns the lowercase SHA-256 fingerprint of the canonical record. * * The fingerprint is the exact value admitted as `test-run:` by * deployment gates. Uses the Web Crypto API available in every supported * runtime. */ declare function testRunFingerprint(evidence: TestRunEvidence): Promise; /** Returns the `test-run:` admission id for one record. */ declare function testRunAdmissionId(evidence: TestRunEvidence): Promise; /** * Returns the fingerprint named by a `test-run:` admission id. * * Returns `undefined` unless the prefix, length, and lowercase hexadecimal * grammar are all exact. */ declare function parseTestRunAdmissionId(id: string): string | undefined; //#endregion export { testRunFingerprint as a, testRunAdmissionId as i, canonicalTestRunJson as n, parseTestRunAdmissionId as r, TEST_RUN_ADMISSION_PREFIX as t }; //# sourceMappingURL=test-run-canonical-B1IuzC5s.d.mts.map