/** * Live export for the fly lexicon — implements `LexiconPlugin.exportResources()` * so `chant import --from ` regenerates existing Fly apps and machines * as chant TypeScript. * * Reads live flaps state and hands it to the pure `./import/live-export` * helpers, which strip server-written fields to the authored shape and map it to * import IR via `FlyParser`. Endpoint + auth reuse the applier verbatim * (`resolveEndpoint` / `defaultFlyHttp` → FLY_FLAPS_BASE_URL / FLY_API_TOKEN), * and the machine listing reuses the applier's `listMachines`, so export reads * the same target `flyApply` writes and `describeResources` observes. * * Which apps are exported: an app named by the selector, else `FLY_APP_NAME`, * else every app in the org (`GET /v1/apps?org_slug=`). All flaps I/O * lives here; cleaning and IR-building are pure in `./import/live-export`. */ import type { ExportedTemplate, ResourceSelector } from "@intentius/chant/lexicon"; import { type FlyHttp } from "./op/activities/fly-apply.js"; export declare function exportResources(options: { environment: string; selector?: ResourceSelector; owned?: boolean; verbatim?: boolean; }, http?: FlyHttp, signal?: AbortSignal): Promise; //# sourceMappingURL=export-resources.d.ts.map