import type { ActiveGoal, GoalStore } from "@loomic/types"; import { RuntimeEventEmitter } from "./event-emitter.js"; /** * InMemoryGoalStore — a concrete implementation of the GoalStore interface. * Manages active goals with priority ordering, progress tracking, and * optional event emission for observability. */ export declare class InMemoryGoalStore implements GoalStore { private goals; private emitter?; constructor(emitter?: RuntimeEventEmitter); /** * Returns active goals ordered by priority (highest first). */ getActiveGoals(): ActiveGoal[]; /** * Get a single goal by ID. */ getGoal(goalId: string): ActiveGoal | undefined; /** * Add a goal. If a goal with the same ID exists, it is replaced. */ addGoal(goal: ActiveGoal): void; /** * Remove a goal by ID. */ removeGoal(goalId: string): void; /** * Update goal progress (0–1). */ updateProgress(goalId: string, progress: number): void; /** * Update a goal's priority. */ updatePriority(goalId: string, priority: number): void; /** * Check if a goal exists. */ hasGoal(goalId: string): boolean; /** * Get the number of active goals. */ get count(): number; /** * Clear all goals. */ clear(): void; } //# sourceMappingURL=goal-store.d.ts.map