/** * Guard for whether the given value is an object with an optional property * with the given name. * This variant does not check the value, only that the property exists. */ export declare function hasOptional(obj: unknown, name: Name): obj is { [K in Name]?: unknown; }; /** * Guard for whether the given value is an object with an optional property * with the given name. * This variant checks the value against the given predicate. */ export declare function hasOptional(obj: unknown, name: Name, predicate: (value: unknown) => value is T): obj is { [K in Name]?: T; }; //# sourceMappingURL=has-optional.d.ts.map