/** * World lock status */ export declare enum WorldLockStatus { UNLOCKED = "unlocked", LOCKED = "locked" } /** * World lock information */ export interface WorldLock { serverName: string; timestamp: Date; pid?: number; } /** * World entity * Represents a Minecraft world with lock management */ export declare class World { private readonly _name; private readonly _path; private _lockStatus; private _lock?; private _sizeBytes?; private _lastModified?; private _seed?; constructor(name: string, path: string); get name(): string; get path(): string; get lockStatus(): WorldLockStatus; get lock(): WorldLock | undefined; get isLocked(): boolean; get isUnlocked(): boolean; get lockedBy(): string | undefined; get sizeBytes(): number | undefined; get lastModified(): Date | undefined; get seed(): string | undefined; /** * Get human-readable size */ get sizeFormatted(): string; /** * Lock the world to a server */ lockTo(serverName: string, pid?: number): void; /** * Release the lock */ release(): void; /** * Force release (for stale locks) */ forceRelease(): void; /** * Set world metadata */ setMetadata(sizeBytes: number, lastModified: Date, seed?: string): void; /** * Set world seed */ setSeed(seed: string): void; /** * Check if lock is stale (older than specified minutes) */ isLockStale(maxAgeMinutes?: number): boolean; /** * Create world from directory listing */ static fromDirectory(name: string, basePath: string): World; /** * Create world with lock status */ static withLock(name: string, path: string, serverName: string, timestamp: Date, pid?: number): World; } //# sourceMappingURL=World.d.ts.map