import type { DashboardApplicationRunPage, DashboardApplicationRunDetail, DashboardApplicationArtifact } from './application-types.js'; export { sanitizeApplicationObservation } from './application-observation-values.js'; export declare class DashboardApplicationQueryError extends Error { readonly statusCode: number; readonly code: string; constructor(message: string, statusCode?: number, code?: string); } export declare function collectDashboardApplicationRunPage(projectRoot: string, query?: { kind?: string; status?: string; applicationId?: string; q?: string; limit?: number; cursor?: string; cached?: boolean; scope?: string; }): Promise; /** 分发只使用保存的完整应用身份,不接受浏览器指定源文件,也不推进 Run。 */ export declare function collectDashboardApplicationDeliverySource(projectRoot: string, locator: string): Promise<{ file: string; id: string; version: string; contentHash: string; }>; export declare function collectDashboardApplicationRunDetail(projectRoot: string, locator: string, query?: { recordLimit?: number; recordId?: string; }): Promise; export declare function collectDashboardApplicationRunRecords(projectRoot: string, locator: string, query?: { limit?: number; cursor?: string; }): Promise<{ items: { data: unknown; id: string; stepId: string; kind: "action" | "decision" | "evidence" | "ready"; title: string; phase: string; sequence: number | null; status: string; attempt: number | null; type: string; active: boolean; childLocator: string | null; childRunId: string | null; }[]; artifacts: DashboardApplicationArtifact[]; locator: string; revision: number; readAt: string; total: number; nextCursor: string | null; } | null>; /** 用户选择的是已绑定的工件身份;API 不接受任意文件路径。 */ export declare function readDashboardApplicationArtifact(projectRoot: string, locator: string, artifactId: string): Promise<{ key: string; label: string; path: string; exists: boolean; content: string; truncated: boolean; status: string; sha256: string | null; currentHash?: undefined; error?: undefined; } | { key: string; label: string; path: string; exists: boolean; content: string; truncated: boolean; status: string; sha256: string | null; currentHash: string; error?: undefined; } | { key: string; label: string; path: string; exists: boolean; status: string; error: string; content?: undefined; truncated?: undefined; sha256?: undefined; currentHash?: undefined; } | null>; //# sourceMappingURL=application-collector.d.ts.map