/** * @medicine-wheel/consent-lifecycle — Cascade Module * * Manages cascading effects of consent changes. When consent * is withdrawn or scope changes, all dependent relations must * be updated. This honors the interconnected nature of consent. */ import type { ConsentRecord, ConsentScope, ConsentCascade } from './types.js'; /** * Compute the cascading effects of consent withdrawal. * All dependent relations must be notified and updated. */ export declare function onWithdrawal(record: ConsentRecord): ConsentCascade; /** * Propagate a scope change to all dependent relations. * Determines whether dependent relations need review or narrowing. */ export declare function propagateScopeChange(record: ConsentRecord, newScope: ConsentScope): ScopeChangeResult; /** * Find all relations that depend on a given consent record. * Returns the dependent relation IDs with their dependency nature. */ export declare function findDependentRelations(record: ConsentRecord, allRecords: ConsentRecord[]): DependencyResult; /** Details of how a dependent relation is affected */ export interface AffectedRelation { relationId: string; action: 'narrow' | 'review' | 'withdraw' | 'expire'; reason: string; } /** Result of scope change propagation */ export interface ScopeChangeResult { cascade: ConsentCascade; narrowed: boolean; widened: boolean; affectedRelations: AffectedRelation[]; requiresReconsent: boolean; summary: string; } /** Result of dependency analysis */ export interface DependencyResult { directCount: number; transitiveCount: number; directDependents: string[]; transitiveDependents: string[]; totalAffected: number; summary: string; } //# sourceMappingURL=cascade.d.ts.map