import { TaskService } from "../core/task-service.js"; import type { StorageEngine } from "../core/storage/index.js"; import type { SyncRegistry } from "../core/sync/index.js"; import type { SyncConfig } from "../core/config.js"; import type { Task } from "../types.js"; export interface CliOptions { storage: StorageEngine; syncRegistry?: SyncRegistry | null; syncConfig?: SyncConfig | null; } export declare const ASCII_BANNER = " ____ _____ __ __\n| \\| __| | |\n| | | __|- -|\n|____/|_____|__|__|"; export declare function createService(options: CliOptions): TaskService; /** * Exit with error if task is not found, showing a hint to list all tasks. * Returns the task (narrowed to non-null) if found. */ export declare function exitIfTaskNotFound(task: Task | null, id: string, service: TaskService): Promise; /** * Format an error for CLI output with proper coloring and suggestions. */ export declare function formatCliError(err: unknown): string; export declare function promptConfirm(question: string): Promise; /** * Find the root task (no parent) for a given task. * Traverses up the parent chain until reaching a task with no parent_id. */ export declare function findRootTask(service: TaskService, task: Task): Promise; //# sourceMappingURL=utils.d.ts.map