200:	get throws(): unknown {
208:	throwsAndHasTypeError(matchValue: string | RegExp): void {
325:	throws: inferredAssertions<[message: string | RegExp], kind, string>
328:		throwsAndHasTypeError: (message: string | RegExp) => undefined
	getThrownMessage,
	throwAssertionError
} from "./assertions.ts"
import type { AssertionContext, VersionableActual } from "./attest.ts"

export type ChainableAssertionOptions = {
	allowRegex?: boolean
	defaultExpected?: unknown
}

type AssertionRecord = Record<keyof rootAssertions<any, AssertionKind>, unknown>

export type UnwrapOptions = {
		this.ctx.versionableActual = getThrownMessage(result, this.ctx)
		this.ctx.allowRegex = true
		this.ctx.defaultExpected = ""
		return this.immediateOrChained()
	}

	throwsAndHasTypeError(matchValue: string | RegExp): void {
		assertEqualOrMatching(
			matchValue,
			getThrownMessage(
				callAssertedFunction(this.unversionedActual as Function),
				this.ctx
			),
