import Database from 'better-sqlite3'; import { Structure } from '../../schema/structure.js'; export declare class StructureRepository { private db; constructor(db: Database.Database); create(structure: Structure): void; /** * Create multiple structures in a single transaction. * Optimized for worldgen structure placement. * * @param structures - Array of structures to create * @returns Number of structures created * * @example * const structures = [ * { id: 's1', worldId: 'w1', name: 'City', type: 'city', x: 50, y: 50, population: 10000, ... }, * { id: 's2', worldId: 'w1', name: 'Town', type: 'town', x: 30, y: 70, population: 2000, ... }, * ]; * structureRepo.createBatch(structures); */ createBatch(structures: Structure[]): number; /** * Find a structure by its ID */ findById(id: string): Structure | null; /** * Find structures by coordinates */ findByCoordinates(worldId: string, x: number, y: number): Structure | null; /** * Find structures by type */ findByType(worldId: string, type: string): Structure[]; /** * Delete all structures for a world */ deleteByWorldId(worldId: string): number; findByWorldId(worldId: string): Structure[]; } //# sourceMappingURL=structure.repo.d.ts.map