/** * Throws the provided error * * @param error - The error to be thrown. * * @example * ```typescript * raise(new Error('This is an error')) * ``` * * @example * Throw error if the condition is not met * ```typescript * const value = x ?? raise(new Error('x is undefined')) * const value = x ? x : raise(new Error('x is falsey')) * ``` */ export declare function raise(error: T): never;