/**
 * An object containing creep spawning options
 */ interface SpawnOpts { /**
     * Memory of the new creep. If provided, it will be immediately stored into Memory.creeps[name].
     */ memory ? : any ; /**
     * Array of spawns/extensions from which to draw energy for the spawning process. Structures will be used according to the array order.
     */ energyStructures ? : Array < StructureExtension | StructureSpawn > ; /**
     * If dryRun is true, the operation will only check if it is possible to create a creep.
     */ dryRun ? : boolean ; } /**
 * Spawns are your colony centers. You can transfer energy into it and create new creeps using createCreep() method.
 */ interface StructureSpawn extends OwnedStructure { readonly prototype : StructureSpawn ; /**
     * The amount of energy containing in the spawn.
     */ energy : number ; /**
     * The total amount of energy the spawn can contain
     */ energyCapacity : number ; /**
     * A shorthand to Memory.spawns[spawn.name]. You can use it for quick access the spawn’s specific memory data object.
     */ memory : any ; /**
     * Spawn’s name. You choose the name upon creating a new spawn, and it cannot be changed later. This name is a hash key to access the spawn via the Game.spawns object.
     */ name : string ; param name param needTime param remainingTime spawning : { name : string ; needTime : number ; remainingTime : number ; } ; deprecated param body param name canCreateCreep ( body , name ? ) : number ; deprecated param body param name param memory createCreep ( body , name ? , memory ? ) : number | string ; param body param name param opts returns spawnCreep ( body , name , opts ? ) : number ; /**
     * Destroy this spawn immediately.
     */ destroy ( ) : number ; /**
     * Check whether this structure can be used. If the room controller level is not enough, then this method will return false, and the structure will be highlighted with red in the game.
     */ isActive ( ) : boolean ; param enabled notifyWhenAttacked ( enabled ) : number ; param target renewCreep ( target ) : number ; param target recycleCreep ( target ) : number ; deprecated param target param amount transferEnergy ( target , amount ? ) : number ; } interface StructureSpawnConstructor extends _Constructor < StructureSpawn > , _ConstructorById < StructureSpawn > { } declare const StructureSpawn ;