/** * @medicine-wheel/consent-lifecycle — Lifecycle Module * * Core consent lifecycle operations: grant, renew, renegotiate, * withdraw, and health assessment. Consent is a living relationship, * not a one-time event. */ import type { ConsentRecord, ConsentState, ConsentScope } from './types.js'; /** * Grant initial consent, transitioning from 'pending' to 'granted'. * Sets the grantedAt timestamp and computes expiration if renewalInterval is set. */ export declare function grantConsent(record: ConsentRecord): ConsentRecord; /** * Renew existing consent, resetting the expiration clock. * Consent must be in 'active', 'granted', or 'renewal-needed' state. */ export declare function renewConsent(record: ConsentRecord): ConsentRecord; /** * Renegotiate consent with a new scope. * Transitions to 'renegotiating' until the new scope is accepted. * The new scope replaces the old scope once finalized. */ export declare function renegotiateConsent(record: ConsentRecord, newScope: ConsentScope): ConsentRecord; /** * Withdraw consent with a reason. This is a terminal action that * triggers cascading effects on all dependent relations. */ export declare function withdrawConsent(record: ConsentRecord, reason: string): ConsentRecord; /** * Check the health of a consent record. * Evaluates whether consent is current, properly renewed, and * within scope. Returns a health assessment with recommendations. */ export declare function checkConsentHealth(record: ConsentRecord): ConsentHealthResult; /** Result of a consent health check */ export interface ConsentHealthResult { healthy: boolean; state: ConsentState; issues: string[]; daysUntilExpiry: number | null; needsRenewal: boolean; /** * What the check found and the holds it keeps, stated as facts (the field * keeps its name). Consent is reached with the grantor, never filled in. */ recommendations: string[]; /** * Present when the consent is not healthy. The findings are current * reality, not tasks, and the holds stay; the desired outcome is named on * its own terms through this tool. */ next_tool?: 'turn_to_creative_orientation'; } //# sourceMappingURL=lifecycle.d.ts.map