import IODefinitions from '../core/definitions.cjs'; import IOSchema from './schema.cjs'; import './types/memberdef.cjs'; import './schema-types.cjs'; /** * Parse an inline schema definition string into a Schema instance. * * This is intended for dynamic schema strings (non-template-literal usage). * For template literals, prefer `io.schema` / `ioSchema`. * * @param schemaText - The schema string to parse (e.g., `{ name: string, age: int }`). * @param parentDefs - Optional parent definitions for resolving references. * @returns The parsed Schema instance. * @throws {Error} If the input string is empty or invalid. * * @example * ```typescript * const schema = parseSchema('{ name: string, age: int }'); * ``` */ declare function parseSchema(schemaText: string, parentDefs?: IODefinitions | null): IOSchema; export { parseSchema as default };