import type { Context } from "@deepseek-ai/cordis"; import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol"; import type { LifecycleState, PlaneItem, ProjectContext, SourceReference } from "./types.js"; type EventCoordinator = unknown; type Storage = unknown; export interface PanelDeps { storage: Storage; coordinator: EventCoordinator; } /** * A project option for the global overlay. `projectContextId` is the only * selection key; the display fields are deliberately descriptive and are not * used to resolve a summary or mutation. */ export interface PanelProject { projectContextId: string; name: string; workspaceSlug: string; localContext: string; planeProjectId: string; } declare const inlineStatuses: readonly ["captured", "planned", "in_progress", "done"]; type InlineStatus = (typeof inlineStatuses)[number]; export declare function countProjectItems(items: PlaneItem[]): { total: number; byStatus: Record; }; export declare function listBoundProjects({ storage }: Pick): PanelProject[]; /** One failed outbox batch row surfaced by the panel summary. */ export interface FailedBatch { batch_id: string; status: string; attempts: number; last_error: string | null; accepted_at: string; } export interface PanelSummary { context: ProjectContext; items: Array; projectCounts: ReturnType | null; sources: SourceReference[]; failures: FailedBatch[]; } export declare function buildPanelSummary({ storage, coordinator }: PanelDeps, projectContextId: string): Promise; export declare function changeItemStatus({ storage, coordinator }: PanelDeps, projectContextId: string, itemId: string, status: LifecycleState): Promise; export declare function retryOutboxBatch({ storage }: Pick, projectContextId: string, batchId: string): void; export declare class AmbientPanelGateway extends TypertRemoteService { private readonly deps; constructor(ctx: Context, deps: PanelDeps); summary(projectContextId: string): Promise; listBoundProjects(): PanelProject[]; setStatus(projectContextId: string, itemId: string, status: LifecycleState): Promise; retryBatch(projectContextId: string, batchId: string): void; } export {};