import type { Constructor } from '@cratis/fundamentals'; /** * Resolves the compliance subject - the natural person a read model's Personal Identifiable * Information (PII) belongs to - from a read model instance. */ export declare class ReadModelSubjectResolver { /** * Attempts to derive the compliance subject from a read model instance. * * Resolution order: * 1. The property decorated with `@subject()` on {@link readModelType}, when it has a value. * 2. The `id` property, by convention - kept so read models that predate `@subject()` * continue to resolve exactly as before. * @param readModelType - The read model type to resolve subject metadata for. * @param instance - The read model instance to inspect, or undefined/null for a read model * that does not exist. * @returns The resolved subject, or undefined when neither source yields a value. */ static resolveFrom(readModelType: Constructor, instance: TReadModel): string | undefined; private static toSubject; } //# sourceMappingURL=ReadModelSubjectResolver.d.ts.map