import { Serial } from 'type-core'; import { Schema } from '../definitions/index.js'; import { Ensure } from './ensure/ensure.js'; import 'json-schema'; import './ensure/types.js'; type Coerce = Ensure; declare namespace Coerce { interface Options { name?: string; assert?: A; } type Schema = Ensure.Schema; } declare function coerce(data: Serial, schema: Coerce.Schema, options?: Coerce.Options): Coerce; export { Coerce, coerce };