import { type Result } from "@fjall/generator"; import type { DestroyParams, DestroyResult } from "../../types/params.js"; import type { ApplicationOperation } from "../../types/operations.js"; import type { DeployServices } from "../serviceFactory.js"; /** * Core application destruction orchestration. * * Detects application pattern, determines destroy order (reverse of deploy), * then destroys stacks sequentially or in parallel groups. Delegates all * CDK operations to the ApplicationStackService.destroyAllStacks() method, * which handles "stack doesn't exist" → success conversion and parallel * phase orchestration for OpenNext patterns. */ export declare function destroyApplication(params: DestroyParams, services: DeployServices, operation: ApplicationOperation): Promise>;