import { Command } from "commander"; /** * Pick the right message when `am.why(ref)` returns an empty chain. Two * distinct causes need different guidance: * * - The ref **is** a declared dependency (matches `declared` by kind+name) but * isn't in the lock file yet → tell the user to run `skaile install`. * - The ref is **not** declared at all → `skaile install` cannot help, so say * plainly that nothing in `skaile.yaml` requires it. * * Pure and terminal-free so it can be unit-tested; the command wires the * returned string into `logErr`. * * @param declared - Declared deps exposing `.kind` + `.name` (from `listDeclared`). */ export declare function whyEmptyMessage(ref: string, declared: Array<{ kind: string; name: string; }>): string; /** * Creates the `skaile why` command. * * Shows why an asset is installed by printing its dependency chain from the * top-level skaile.yaml requirement down to the asset. * * @returns Configured {@link Command} ready for `program.addCommand()`. * @docLink cli/commands/misc#why */ export declare function makeWhyCommand(): Command; //# sourceMappingURL=why.d.ts.map