/** * 🎨 THE DESIGN CERTIFICATE — Melete's design system as a SIGNED, machine-verifiable artifact. * * Inspired by Google's DESIGN.md (and getdesign.md's library of them): a structured, machine-readable description * of a product's design system that an AI coding agent can consume to generate on-brand UI. Melete's whole identity * is "every claim signed and offline-verifiable" — so this dogfoods that on the design layer itself. Melete emits * its OWN design system — the dark canvas, the per-demo accent palette, the type scale, motion + component rules — * as a DESIGN.md document whose tokens are bound by an Ed25519 signature. An agent (or getdesign.md) can fetch it, * verify it offline, and trust the tokens it builds against; the certificate also proves a real, measurable * design-quality property — every accent clears a WCAG contrast floor on the canvas, so the palette is legible by * construction, not by taste. * * WORLD-FIRST-ish (the unique twist): every other DESIGN.md is just a document; this one is a signed certificate * whose contrast guarantees and token integrity re-derive offline — a design system you can VERIFY, not just read. * (DIAKRISIS — MEASURED: every accent meets a ≥ 3:1 WCAG contrast ratio against the canvas [the measured minimum is * reported]; every per-demo accent is a member of the published palette [self-consistent]; the emitted DESIGN.md * round-trips every token; the manifest re-derives + the signature verifies offline; tampering with any token or * contrast value is caught. HONEST: this certifies token INTEGRITY + a contrast floor + self-consistency — it does * not claim the design is beautiful [taste is not measurable]; the accents are intentionally NOT all unique [some * are reused across demos], and the certificate documents that truthfully rather than overclaiming.) */ import { type KeyObject } from "node:crypto"; export declare function contrastRatio(a: string, b: string): number; declare function buildManifest(): { name: string; version: string; philosophy: string; canvas: { bg: string; surface: string; surfaceSoft: string; border: string; text: string; muted: string; }; accents: Record; typography: { fontStack: string; monoStack: string; scalePx: { eyebrow: number; body: number; h3: number; h2: number; hero: number; }; tracking: { tight: string; eyebrow: string; }; weights: { body: number; strong: number; display: number; }; }; motion: { fast: string; base: string; easing: string; scrollReveal: string; }; components: { card: { radius: string; padding: string; bg: string; accentRole: string; }; pillCTA: { radius: string; label: string; accentRole: string; }; certVerdict: { good: string; bad: string; pending: string; }; }; demoAccents: Record; }; export interface DesignCertificate { standard: "melete-design-certificate/v1"; manifest: ReturnType; contrastFloor: number; minContrast: number; minContrastAccent: string; accessible: boolean; paletteSelfConsistent: boolean; payloadHash: string; signature: string; publicKeyPem: string; algo: "ed25519+sha256"; } export declare function designCertificate(opts?: { contrastFloor?: number; keys?: { publicKey: KeyObject; privateKey: KeyObject; }; }): DesignCertificate; export declare function verifyDesignCertificate(c: DesignCertificate): { ok: boolean; reason: string; }; export declare function toDesignMarkdown(c: DesignCertificate): string; export declare function designGauntlet(): { score: 0 | 100; checks: Array<{ name: string; pass: boolean; detail: string; }>; }; export {}; //# sourceMappingURL=design.d.ts.map