/** Browser-safe, versioned role configuration. Absent/disabled preserves legacy identity. */ export interface CharacterCard { schemaVersion: 1; enabled: boolean; /** Default on for role chat; progression belongs to the companion, not the card. */ affectionEnabled?: boolean; /** Opt-in exclusive system prompt; tools and runtime contexts remain available. */ exclusivePrompt?: boolean; /** Authoritative free-form role. Absent means adapt the legacy fields losslessly. */ roleText?: string; /** Workspace illustrations explicitly selected for private role-image tasks. */ drawingReferences?: string[]; chatStyle?: string; shortVoiceReplies?: boolean; segmentedReplies?: boolean; segmentDelay?: { enabled: boolean; minSeconds: number; maxSeconds: number; }; stickersEnabled?: boolean; identity: string; motivation: string; voice: string; relationship: string; greeting: string; length: 'short' | 'balanced' | 'rich'; narration: boolean; examples: Array<{ user: string; assistant: string; avoid?: string; }>; lore: Array<{ id: string; title: string; keywords: string[]; content: string; enabled: boolean; }>; } export interface CharacterState { scene: string; relationship: string; facts: string[]; events: string[]; pins: string[]; updatedAt: number; sourceTurnId?: string; } export declare function emptyCharacterCard(): CharacterCard; export declare function emptyCharacterState(): CharacterState; export declare function normalizeSegmentDelay(value: unknown): NonNullable; export declare function normalizeCharacterCard(value: unknown): CharacterCard; /** One editable document, including old examples. Never inject both old and new voices. */ export declare function roleTextForCard(card: CharacterCard): string; export declare function normalizeCharacterState(value: unknown): CharacterState; /** Model-produced state is a bounded rolling summary; manual edits stay strict. * Full conversation evidence remains in the memory journal and archives. */ export declare function normalizeReflectedCharacterState(value: unknown): CharacterState; export declare function renderCharacterCore(card: CharacterCard | undefined, surface?: string): string; export declare function activatedLore(card: CharacterCard, query: string): CharacterCard['lore']; export declare function renderCharacterContext(card: CharacterCard | undefined, query: string, state?: CharacterState): string; /** The sole static prompt in opt-in exclusive mode, composed only from editable identity text. */ export declare function renderExclusiveIdentity(identity: { name: string; role: string; description: string; instructions: string; characterCard: CharacterCard; }): string; //# sourceMappingURL=domain.d.ts.map