type PathValue = TPath extends [] ? Exclude : TPath extends [infer THead, ...infer TTail] ? THead extends keyof Exclude ? PathValue[THead], Extract> : never : never; /** * Ensures that a value, or a nested value selected by path, is not `undefined`. * * @param value - Root value that must be defined. * @param path - Property path resolved from `value`. * @returns The resolved value narrowed to exclude `undefined`. * @throws When the resolved value is `undefined`. */ export declare function ensureDefined(value: T): Exclude; export declare function ensureDefined(value: T, ...path: TPath): PathValue; export {}; //# sourceMappingURL=ensure-defined.d.ts.map