const defaultState = {
    projectTitle: "Tasks",
    projectSubtitle: "Select a project to get started",
    permissionLabel: "No project selected",
    activeTab: 0,
    isWizardMode: false,
    isAdministrator: false,
    showAllProjects: false,
    isProjectsLoading: false,
    selectedProjectId: null,
    selectedTaskId: null,
    projectOptions: [],
    hasSelectedProject: false,
    canCreateTask: false,
    canRunOrchestrator: false,
    runningOrchestrator: false,
    canManageProject: false,
    myTasks: [],
    myTasksLoading: false,
    onSelectProject: undefined,
    onRefreshProjects: undefined,
    onSelectMyTask: undefined,
    onSetActiveTab: undefined,
    onCreateProject: undefined,
    onOpenProjectTemplates: undefined,
    onOpenProjectSettings: undefined,
    onDeleteProject: undefined,
    onRestartProject: undefined,
    onToggleShowAllProjects: undefined,
    onToggleWizardMode: undefined,
    onCreateTask: undefined,
    onRunOrchestrator: undefined,
};
let state = defaultState;
const listeners = new Set();
function emit() {
    listeners.forEach((listener) => listener());
}
export function subscribeTaskBoardNav(listener) {
    listeners.add(listener);
    return () => listeners.delete(listener);
}
export function getTaskBoardNavSnapshot() {
    return state;
}
export function setTaskBoardNavState(partial) {
    state = { ...state, ...partial };
    emit();
}
export function resetTaskBoardNavState() {
    state = defaultState;
    emit();
}
//# sourceMappingURL=taskBoardNavStore.js.map