import type { Pool } from 'pg'; export interface UninstallPreview { widgets: number; placements: number; changesets: number; rollouts: number; /** Definitions this theme provisioned — LEFT IN PLACE at uninstall * (deleting would fire the prune fan-out across entity tables); the * attribution stays on the rows so theme:status keeps reporting them. */ metafieldProvisions: number; /** * Landing pages this theme has content on. The PAGE ROWS ARE NOT DELETED * (pages are not theme property) — only their bodies go with the widgets, so * each is left reachable but empty. Reported so the CLI can say so. */ landingPageDetails: Array<{ uuid: string; name: string; urlKey: string; }>; draftDetails: Array<{ name: string; opsCount: number; }>; rolloutDetails: Array<{ name: string; startTime: Date | null; }>; } /** * Read what a `theme:uninstall` would delete (spec 04 § 8) — drives the CLI's * confirmation prompt. Pure read, no writes. */ export declare function previewUninstall(themeId: string, pool: Pool): Promise; /** * Delete every trace of a theme's content (spec 04 § 8), transactionally. * Order respects FK direction: rollouts → changesets (cascades operations) → * widget_instance (cascades placements) → install state. Audit row last. */ export declare function applyUninstall(themeId: string, pool: Pool): Promise;