/** * Consent domains and versioned receipts — ADR-302. * * Four+ distinct decisions, never bundled: account, proxy-install, * telemetry, cloud-routing, hosted-memory. A receipt is written on both * grant AND decline (a decline is a decision, not an absence). A stale * policyVersion means the consent must be re-asked before the capability * activates — never silently carried forward. */ import type { ConsentDomain, ConsentFile, ConsentReceipt } from './types.js'; export declare const CONSENT_DOMAINS: ConsentDomain[]; export declare function readConsents(): ConsentFile; export declare function getConsent(domain: ConsentDomain): ConsentReceipt; /** * Effective consent: granted AND at the current policy version. A receipt * from an older policy version is treated as not-consented (re-ask, never * carry forward). */ export declare function hasConsent(domain: ConsentDomain): boolean; export declare function recordConsent(domain: ConsentDomain, granted: boolean, surface: string, now?: Date): ConsentReceipt; export declare function revokeConsent(domain: ConsentDomain, surface: string): ConsentReceipt; //# sourceMappingURL=consent.d.ts.map