import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; interface PickedEnvelope { readonly rid: string; readonly picked: readonly { readonly rid: string; readonly files: readonly string[]; readonly label: string; }[]; } /** * Validate a -picked.json envelope. Throws a CLI-friendly Error on any * shape violation; the catch in the slice.plan action converts it to * a fail() envelope with `code: 'PICKED_ENVELOPE_INVALID'`. * * Schema: * { rid: string; picked: Array<{ rid, files: string[], label }> } * * Rejects: missing rid, missing/invalid picked array, picked[i] missing * rid / files / label, picked[i].files empty. */ export declare function parsePickedFile(pickedPath: string): PickedEnvelope; export declare function registerSlicePlanCommand(slice: Command, io: ProgramIO): void; export {};