import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export declare const PIW_SHORTCUT = "ctrl+shift+r"; export declare const PIW_SHORTCUT_HINT = "Ctrl+Shift+R piw"; export declare const VIEWER_PLACEMENTS: readonly ["right", "below", "left", "above", "tab", "workspace"]; export type ViewerPlacement = (typeof VIEWER_PLACEMENTS)[number]; export type WorkflowViewTarget = { runId: string; workflowName: string; }; export type HerdrCapability = { available: true; } | { available: false; reason: string; }; export type ViewerOpenResult = { paneId: string; reused: boolean; warning?: string; }; type Exec = ExtensionAPI["exec"]; type HerdrPane = { paneId: string; tabId: string; workspaceId: string; label?: string; }; export declare class HerdrWorkflowViewer { private readonly exec; private readonly env; private readonly knownPanes; private readonly opening; constructor(exec: Exec, env?: NodeJS.ProcessEnv); probe(): Promise; focusExisting(target: WorkflowViewTarget): Promise; open(target: WorkflowViewTarget, placement: ViewerPlacement, cwd: string): Promise; private openOnce; private findAndFocus; find(target: WorkflowViewTarget): Promise; private currentPane; private openPluginPane; private openWorkspace; private closePane; private run; private runJson; } export declare function parseViewerPlacement(value: string): ViewerPlacement | undefined; export declare function viewerPaneLabel(runId: string): string; export {};