import type { Enclos } from '@domain/entities/Enclos'; import type { Accouplement } from '@domain/entities/Accouplement'; export interface AppState { enclos: Enclos[]; activeId: number | string | null; nextEnclosId: number; alarmSound: string; notifsEnabled: boolean; ntfyTopic: string; archivedStats: unknown[]; inventaire: Record; workflows: unknown[]; accouplements: Accouplement[]; } export interface StateRepository { load(): Promise; save(state: AppState): void; }