import type { ActorService } from "../actor-service"; import type { ApprovalService } from "../approval-service"; import type { HabitService } from "../habit-service"; import type { NoteService } from "../note-service"; import type { ProjectIntegrationService } from "../project-integration-service"; import type { ProjectService } from "../project-service"; import type { RecurringService } from "../recurring-service"; import type { TaskService } from "../task-service"; import { type ToduDaemonClient } from "./daemon-client"; import { type CreateToduDaemonConnectionOptions, type ToduDaemonConnection } from "./daemon-connection"; export declare const DEFAULT_TODU_INITIAL_CONNECT_TIMEOUT_MS = 2000; export interface ToduTaskServiceRuntime { connection: ToduDaemonConnection; client: ToduDaemonClient; taskService: TaskService; actorService: ActorService; projectService: ProjectService; recurringService: RecurringService; habitService: HabitService; noteService: NoteService; approvalService: ApprovalService; projectIntegrationService: ProjectIntegrationService; ensureConnected(): Promise; ensureActorServiceConnected(): Promise; ensureProjectServiceConnected(): Promise; ensureRecurringServiceConnected(): Promise; ensureHabitServiceConnected(): Promise; ensureNoteServiceConnected(): Promise; ensureApprovalServiceConnected(): Promise; ensureProjectIntegrationServiceConnected(): Promise; disconnect(): Promise; } export interface CreateToduTaskServiceRuntimeOptions extends CreateToduDaemonConnectionOptions { initialConnectTimeoutMs?: number; } declare const createToduTaskServiceRuntime: (options?: CreateToduTaskServiceRuntimeOptions) => ToduTaskServiceRuntime; declare const getDefaultToduTaskServiceRuntime: () => ToduTaskServiceRuntime; declare const resetDefaultToduTaskServiceRuntime: () => Promise; declare const connectWithinTimeout: (connection: ToduDaemonConnection, timeoutMs: number) => Promise; export { connectWithinTimeout, createToduTaskServiceRuntime, getDefaultToduTaskServiceRuntime, resetDefaultToduTaskServiceRuntime, };