import type Runtype from "./Runtype.js"; /** * A pseudo-runtype that is only usable in the context of `Object` properties. This works as the runtime counterpart of optional properties. * * ```typescript * const O = Object({ x: Number.optional() }) * const O = Static // { x?: number } * ``` */ interface Optional { tag: "optional"; underlying: R; default?: D; } declare const Optional: { (underlying: R): Optional; (underlying: R, defaultValue: D): Optional; isOptional: (runtype: Runtype.Core | Optional) => runtype is Optional; }; export default Optional;