/** * Check an optional property type * * @param obj - the object to check * @param property - the property name * @param type - the expected type * @throws {Error} if the property is defined and not of the expected type */ export declare function checkOptionalProperty(obj: T, property: Exclude, type: 'array' | 'function' | 'string' | 'boolean' | 'number' | 'object'): void;