/** * @medicine-wheel/consent-lifecycle — Scope Module * * Manages consent scope: defining, narrowing, widening, * and checking whether actions fall within scope. */ import type { ConsentScope } from './types.js'; /** * Create a new consent scope with the given parameters. * A scope defines the boundaries of what is consented. */ export declare function defineScope(description: string, dataTypes: string[], purposes: string[]): ConsentScope; /** * Narrow an existing scope by adding restrictions. * Narrowing does not require re-consent — it only limits scope. */ export declare function narrowScope(scope: ConsentScope, restrictions: string[]): ConsentScope; /** * Widen a scope by adding data types, purposes, or removing restrictions. * IMPORTANT: Widening scope requires re-consent from the grantor. * This function returns the proposed new scope; the caller must * initiate a renegotiation process. */ export declare function widenScope(scope: ConsentScope, additions: ScopeAdditions): WidenScopeResult; /** * Check whether a specific action falls within the consent scope. * Returns true if the action's data type and purpose are covered * and not restricted. */ export declare function scopeIncludes(scope: ConsentScope, query: ScopeQuery): ScopeCheckResult; /** Additions to propose when widening scope */ export interface ScopeAdditions { dataTypes?: string[]; purposes?: string[]; removeRestrictions?: string[]; duration?: string; geographic?: string; } /** Result of a scope widening operation */ export interface WidenScopeResult { proposedScope: ConsentScope; requiresReconsent: boolean; changes: string[]; } /** Query to check against a consent scope */ export interface ScopeQuery { dataType: string; purpose: string; geographic?: string; } /** Result of a scope inclusion check */ export interface ScopeCheckResult { withinScope: boolean; issues: string[]; } //# sourceMappingURL=scope.d.ts.map