/** * Adapts `OverlayController` into the typed app-layer confirm/secret ports * (CORE-002, V2-073). The agent never reads the terminal directly: it awaits * these promises, which resolve once the user answers the rendered modal. * Prompt text is ported from the classic TUI's `confirm.ts` so both * frontends read the same way. */ import type { ConfirmationPort } from "../../app/ports/confirm-port.js"; import type { SecretPort } from "../../app/ports/secret-port.js"; import type { OverlayController } from "../controllers/overlay-controller.js"; /** * Load a text preview of a path for the delete-confirm `v` action. * Binary / unreadable files get a short diagnostic instead of a crash. */ export declare function loadDeletePreview(path: string): Promise; export declare function createOverlayConfirmPort(overlay: OverlayController): ConfirmationPort; export declare function createOverlaySecretPort(overlay: OverlayController): SecretPort["request"];