import type { AppErrorImpl } from '../result/errors.js'; import { type Result } from '../result/result.js'; import type { IUnitScalar } from './i-unit-scalar.js'; /** * THE parser for a markable SCALAR selector (registration hint * `discovery.targetFile`): `string | { pattern, expectEmpty: true, reason? }` * in, the plain unit plus its ledger (0 or 1 mark) out. * * normalizeUnitScalar({ pattern: 'src/app/routes.ts', expectEmpty: true }, 'discovery.targetFile') * → ok({ unit: 'src/app/routes.ts', marks: [{ list: 'discovery.targetFile', unit: 'src/app/routes.ts' }] }) * * Refusals are `: …` problems (no index), with the same marker rules * as a list entry. Idempotent: a string returns `{ unit, marks: [] }`. Only * call it when the scalar is present — absence is the asset validator's call. */ export declare function normalizeUnitScalar(value: unknown, listPath: string): Result; //# sourceMappingURL=normalize-unit-scalar.d.ts.map