/** * State Module — SquadState Facade * * Top-level typed API for reading and writing `.squad/` state. * Composes the collection facades (agents, decisions, routing, team) * over a pluggable StorageProvider. * * @module state/squad-state */ import type { StorageProvider } from '../storage/storage-provider.js'; import { AgentsCollection, ConfigCollection, DecisionsCollection, LogCollection, RoutingCollection, SkillsCollection, TeamCollection, TemplatesCollection } from './collections.js'; export declare class SquadState { private readonly storage; private readonly _rootDir; readonly agents: AgentsCollection; readonly config: ConfigCollection; readonly decisions: DecisionsCollection; readonly routing: RoutingCollection; readonly team: TeamCollection; readonly skills: SkillsCollection; readonly templates: TemplatesCollection; readonly log: LogCollection; private constructor(); /** The project root directory this SquadState is bound to. */ get root(): string; /** The underlying StorageProvider used by this instance. */ get provider(): StorageProvider; /** * Factory method — validates that `rootDir/.squad/` exists before * returning a new SquadState instance. */ static create(storage: StorageProvider, rootDir: string): Promise; /** * Synchronous factory — creates SquadState without validating `.squad/` * existence. For internal SDK use where the caller already knows the * root is initialized (e.g., modules operating on an existing project). */ static fromStorage(storage: StorageProvider, rootDir: string): SquadState; /** Check if a `.squad/` directory exists at the root. */ isInitialized(): Promise; } //# sourceMappingURL=squad-state.d.ts.map