import type { PromptDefinition } from '../types/prompts.js'; /** * JSON with object keys sorted, so the same content always encodes the same way. `undefined` fields * are dropped, as `JSON.stringify` drops them. */ export declare function canonicalJson(value: unknown): string; /** * The content version of a definition: `p` and the first 12 hex digits of a SHA-256 over its name, * messages, partials, configuration, and defaults. * * Metadata is left out, so describing a prompt differently does not make it a new version. Hashing * uses Web Crypto, which Node, browsers, and edge runtimes all provide, so a version computed in one * matches the version computed in another. */ export declare function promptVersion(definition: PromptDefinition): Promise;