import { TypeId } from "../types/typeId"; export interface InvalidCastErrorOptions extends ErrorOptions { valueType?: TypeId; targetType?: TypeId; } export declare function buildInvalidCastErrorMessage(options?: InvalidCastErrorOptions): string; export declare class InvalidCastError extends TypeError { name: string; readonly valueType?: TypeId; readonly targetType?: TypeId; constructor(message?: string, options?: InvalidCastErrorOptions); static fromValue(value: unknown, targetType?: TypeId): InvalidCastError; } //# sourceMappingURL=invalidCastError.d.ts.map