/** * Shared overlay system for cdp-tools * Provides consistent UI for issue workflows (workOn, resolve, replay) */ import type { Page } from 'puppeteer-core'; export type OverlayAction = 'cancel' | 'record' | 'explore' | 'begin' | 'yes' | 'no'; export interface OverlayButton { id: string; label: string; action: OverlayAction; primary?: boolean; danger?: boolean; } export interface OverlayConfig { id: string; title: string; description: string; instructions?: string; buttons: OverlayButton[]; showComment?: boolean; commentPlaceholder?: string; } export interface OverlayResult { action: OverlayAction; comment?: string; } /** * Overlay for workOn when there's no sequence - offers Record or Explore */ export declare function getWorkOnNoSequenceConfig(issueType: 'bug' | 'feature', issueId: number, issueDescription: string): OverlayConfig; /** * Overlay for workOn/resolve when there IS a sequence - just Begin or Cancel */ export declare function getTestReadyConfig(issueType: 'bug' | 'feature', issueId: number, issueDescription: string): OverlayConfig; /** * Overlay for resolve verification - asks if issue is fixed */ export declare function getVerificationConfig(issueType: 'bug' | 'feature', issueId: number, issueDescription: string): OverlayConfig; /** * Show a modal overlay with configurable buttons * Returns the action taken and optional comment */ export declare function showOverlay(page: Page, config: OverlayConfig): Promise; /** * Show a "Replay in progress" overlay that blocks user interaction * Returns a cleanup function to remove the overlay */ export declare function showReplayBanner(page: Page, issueType: 'bug' | 'feature', issueDescription: string, issueId: number): Promise<() => Promise>; //# sourceMappingURL=overlays.d.ts.map