/** * Approval-panel collapse button. * * Pure DOM helpers, no framework imports — unit-testable in jsdom. The * harness ApprovalPanel body (`[data-approval-scroll]`: the red/green diff * headline plus the optional command line) can be hundreds of lines tall and * hides the agent's output behind the composer. This module installs a * disclosure button at the strip's right end (the card's top-right corner) * that toggles the body visibility via a card class — CSS-only show/hide, * the diff DOM stays intact, so expanding restores the exact same view with * no re-render. * * @module dsh-edit-approval/client/collapse */ /** Card class toggled by the collapse button (the body-hiding rule lives in {@link COLLAPSE_STYLE}). */ export declare const COLLAPSED_CLASS = "dsh-ea-collapsed"; /** Class of the injected disclosure button. */ export declare const COLLAPSE_BUTTON_CLASS = "dsh-ea-collapse-btn"; /** * Collapse-button styling plus the body-hiding rule. Scoped by the panel * root anchor and the card class, so it never leaks outside an approval * panel. Merged into the plugin's injected `