import { spawnCometCommand } from '../../platform/process/comet-command.js'; import { type ReleaseNotesLanguage } from './update-release-notes.js'; export declare class DashboardUpdateError extends Error { readonly statusCode: number; constructor(message: string, statusCode?: number); } interface UpdateLogEntry { sequence: number; stream: 'stdout' | 'stderr'; text: string; } export type DashboardUpdateCommand = typeof spawnCometCommand; export declare function createDashboardUpdateService(cwd: string, spawnUpdateCommand?: DashboardUpdateCommand): { status(refresh?: boolean): Promise<{ checkedAt: string; projects: string[]; projectRevision: string; job: { entries: UpdateLogEntry[]; id: string; version: string; status: "running" | "completed" | "failed"; startedAt: string; finishedAt: string | null; exitCode: number | null; command: string; cursor: number; truncated: boolean; } | null; currentVersion: string; latestVersion: string | null; hasUpdate: boolean; checked: boolean; }>; releaseNotes(language: ReleaseNotesLanguage): Promise<{ markdown: string | null; currentVersion: string; latestVersion: string | null; language: ReleaseNotesLanguage; }>; readJob: (after?: number) => { entries: UpdateLogEntry[]; id: string; version: string; status: "running" | "completed" | "failed"; startedAt: string; finishedAt: string | null; exitCode: number | null; command: string; cursor: number; truncated: boolean; } | null; start(input: unknown): Promise<{ entries: UpdateLogEntry[]; id: string; version: string; status: "running" | "completed" | "failed"; startedAt: string; finishedAt: string | null; exitCode: number | null; command: string; cursor: number; truncated: boolean; } | null>; }; export {}; //# sourceMappingURL=update-service.d.ts.map