/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { CollectionDefinition } from '../@types/index.js'; /** * Computes a deterministic SHA-256 fingerprint of the data-shape-relevant * portion of a `CollectionDefinition`. Two definitions that differ only in * cosmetic fields (labels, hooks, admin/search/showStats metadata, helpText, * placeholders) produce the same fingerprint. Adding or removing a field, * changing a field type, renaming a block variant, altering workflow statuses, * or changing a relation target all produce a different fingerprint. * * Async because `crypto.subtle.digest` is async on every platform. Returned * as a lowercase hex string (64 characters). */ export declare function fingerprintCollection(def: CollectionDefinition): Promise;