import type { HomeAttention, HomeAdvisor, HomeDecision, HomeResponse, OneShotWorkbenchAlert } from '@xopcai/gateway-contract'; import type { AutomationService } from '../automations/service/automation-service.js'; import type { Config } from '../config/schema.js'; import type { ProjectService } from '../projects/project-service.js'; import { type TaskAggregate } from './task-repository.js'; import { type TaskReadModel } from './task-read-model-projector.js'; type HomeAutomation = { id: string; name?: string; trigger: string; action: string; nextRunAt: string; }; interface HomeGatewayPort { readonly currentConfig: Config; readonly automationServiceInstance: AutomationService; readonly projects: ProjectService; readonly sessions: { listActiveRuns(): Array<{ conversationId: string; runId: string; }>; getSession(key: string): Promise<{ name?: string; updatedAt: string; lastInteractionAt?: string; routing?: { agentId?: string; }; } | null>; }; } export declare function decisionFromTask(model: TaskReadModel, projectName?: string, locale?: string): HomeDecision | null; export declare function buildHomeWorkbench(input: { locale?: string; decisions: HomeDecision[]; attention: HomeAttention[]; runningTasks: TaskAggregate[]; waitingTaskReasons?: Record; pausedTaskIds?: ReadonlySet; scheduled: HomeAutomation[]; nowMs: number; }): Pick; export declare class HomeQueryService { #private; private readonly service; private readonly getAdvisor; private readonly listUnreadFollowUps; constructor(service: HomeGatewayPort, getAdvisor?: (locale?: string) => HomeAdvisor, listUnreadFollowUps?: () => OneShotWorkbenchAlert[]); getSnapshot(locale?: string, includeAll?: boolean): Promise; private recentDeliveries; private resumableWork; } export {};