/** * Actor identity utilities — serialization, parsing, and constants. * * ActorIdentity is defined in logger.ts (canonical location). * This module provides utilities for working with actors across * the governance chain: request → service → validation → audit → event. */ import type { ActorIdentity } from './logger.js'; /** System actor for internal/automated operations (config loading, migrations, etc.) */ export declare const SYSTEM_ACTOR: Readonly; /** * Serialize an ActorIdentity to a compact string for log messages, branch names, etc. * * Format: `{type}:{id}` or `{type}:{id}:{name}` if name is present. * * @example * serializeActor({ type: 'ai-agent', id: 'agent-1', name: 'Claude' }) * // => 'ai-agent:agent-1:Claude' * * serializeActor({ type: 'human', id: 'jdoe' }) * // => 'human:jdoe' */ export declare function serializeActor(actor: ActorIdentity): string; /** * Parse a serialized actor string back to ActorIdentity. * * @throws Error if the string format is invalid */ export declare function parseActor(serialized: string): ActorIdentity; //# sourceMappingURL=actor.d.ts.map