import type { Nullable, NullOr } from "@joookiwi/type"; import type { ExceptionWithNullableCause } from "./declaration/ExceptionWithNullableCause"; import type { ExceptionWithValue } from "./declaration/ExceptionWithValue"; /** * The {@link value value received} was expected to be in a specific structure or an instance * * @see https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/ClassCastException.html Java ClassCastException * @see https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-class-cast-exception Kotlin ClassCastException * @see https://learn.microsoft.com/dotnet/api/system.invalidcastexception C# InvalidCastException */ export declare class InvalidInstanceException extends TypeError implements ExceptionWithValue, ExceptionWithNullableCause { #private; readonly name: string; constructor(message: string, value: T, cause?: Nullable); /** The value that was an invalid instance */ get value(): T; get cause(): NullOr; } //# sourceMappingURL=InvalidInstanceException.d.ts.map