import { ParseResult } from "@fncts/schema/ParseResult"; import { AST } from "@fncts/schema/AST"; import { Refinement } from "@fncts/base/data/Refinement/definition"; import type { ParseOptions } from "../AST.js"; /** * @tsplus type fncts.schema.Parser * @tsplus companion fncts.schema.ParserOps * @tsplus no-inherit fncts.schema.Schema fncts.schema.SchemaOps */ export interface Parser { (input: unknown, options?: ParseOptions): ParseResult; } /** * @tsplus static fncts.schema.ParserOps make * @tsplus location "@fncts/schema/Parser/definition" */ export declare function make(parse: Parser): Parser; /** * @tsplus static fncts.schema.ParserOps fromRefinement * @tsplus location "@fncts/schema/Parser/definition" */ export declare function fromRefinement(ast: AST, refinement: Refinement): Parser;