import Runtype from "./Runtype.js"; /** * Validates that a value is a symbol, and optionally the key is equal to the given one. If you want to ensure a symbol is *not* keyed, pass `undefined`. * * Possible failures: * * - `TYPE_INCORRECT` for non-symbols * - `VALUE_INCORRECT` if the key is not equal to the given one */ interface Symbol extends Runtype { tag: "symbol"; key?: K; (key: K): Symbol; } declare const Symbol: Symbol; export default Symbol;