/** * World Class - Object-Oriented Wrapper for Core World Functions * * Provides a clean OOP interface wrapping core function-based API with automatic worldId management. * Stateless design - each method delegates to core functions and fetches fresh data. * * Usage: * ```typescript * const world = new WorldClass(worldId); * await world.delete(); * const agent = await world.createAgent({...}); * await world.clearAgentMemory('agent-name'); * ``` */ import { type World, type Agent, type Chat, type AgentMessage } from './index.js'; import type { CreateAgentParams, UpdateAgentParams, UpdateWorldParams } from './types.js'; /** Object-oriented wrapper for World management functions */ export declare class WorldClass { private readonly worldId; constructor(worldId: string); delete(): Promise; update(updates: UpdateWorldParams): Promise; reload(): Promise; exportToMarkdown(): Promise; save(): Promise; createAgent(params: CreateAgentParams): Promise; getAgent(agentName: string): Promise; updateAgent(agentName: string, updates: UpdateAgentParams): Promise; deleteAgent(agentName: string): Promise; listAgents(): Promise; clearAgentMemory(agentName: string): Promise; listChats(): Promise; newChat(setAsCurrent?: boolean): Promise; restoreChat(chatId: string, setAsCurrent?: boolean): Promise; deleteChat(chatId: string): Promise; getMemory(chatId?: string | null): Promise; get id(): string; toString(): string; toJSON(): { id: string; }; } export default WorldClass;