/** * Shared helpers for the kb sub-command modules. * * Kept deliberately small: anything specific to a single sub-command lives * with that sub-command, while only logic reused by two or more siblings * is hoisted here. */ /** * Pick the declared subset of options onto a request record, dropping * `undefined` / `null` / empty-string entries. Replaces the long * `if (opts.xxx) req.xxx = ...` chains in `kb create` (CR M8). */ export declare function pickOptions>(source: Record, mapping: Record): Partial; /** Split a comma-separated CLI string into trimmed segments. */ export declare function parseCommaSeparated(value: string): string[]; /** * Commander `--option value` collector for repeatable flags. Push semantics * keep options registered with `.option(..., collectMultiOption, [])` from * losing earlier values. */ export declare function collectMultiOption(value: string, previous: string[]): string[]; //# sourceMappingURL=helpers.d.ts.map