/** * CLI-side validation for backlog `--blocked-by` refs and `--detail-file` * paths. The server (`@hula/shared`) owns the authoritative schema; this mirror * lives here because the hub-launch CLI is a standalone package that does not * depend on `@hula/shared`. Kept pure + unit-tested (`blocked-by.test.ts`). */ /** One typed blocker ref carried to the server (`{kind,ref,resolvedAt?}`). */ export interface BlockedRef { kind: 'plan' | 'pr' | 'item' | 'issue'; ref: string; resolvedAt?: string; } /** * Parse `kind:ref` tokens into typed refs. Validates `kind ∈ * {plan,pr,item,issue}` and, for `pr`/`issue`, that the ref is `owner/repo#N`. * Throws a clear Error on the first malformed token (mirrors the strictness of * the `bl-` key guard). */ export declare function parseBlockedBy(input: string[]): BlockedRef[]; /** * Resolve and validate a `--detail-file` path. Accepts only files under the * repo root or the OS temp dir (same intent as the `bl-` key path guard): * returns the absolute path, or throws on traversal outside those roots. */ export declare function validateDetailFilePath(rawPath: string, repoRoot: string): string; //# sourceMappingURL=blocked-by.d.ts.map