import type { DatabaseSync } from 'node:sqlite'; import { type Routine, type RoutineAdoptRequest, type RoutineCommandRequest } from '@xopcai/gateway-contract'; import type { AutomationService } from '../automations/service/automation-service.js'; import type { AutomationDeps } from '../automations/domain/types.js'; import type { HomePrincipal } from './repository.js'; /** Versioned private-draft routines. Scheduling and execution leases remain owned by AutomationService. */ export declare class ObservationRoutines { private readonly deps; private readonly repository; constructor(db: DatabaseSync, principal: HomePrincipal, deps: { automations: AutomationService; canRead(id: string): boolean; stopConversation?(id: string): Promise; agentId(): string; dispatch(): void; publish(): void; }); private row; private readable; private method; private verified; private replay; private operation; private assertSource; private validateSchedule; adopt(input: RoutineAdoptRequest): Routine; get(id: string): Routine; list(): Routine[]; /** Proposals append scoped feedback; protected objectives, permissions and output destinations cannot mutate. */ refresh(): void; private createTask; private candidateValid; command(id: string, input: RoutineCommandRequest): Promise; readonly execute: NonNullable; }