import { Maybe } from "./maybe.js"; import { type VariableComposite } from "./variable-composite.js"; import { Value, Variable } from "./variable.js"; export declare function validate(variables: Variable[], composites: VariableComposite>>[]): [boolean, Results]; export type Result = ErrorResult | ValueResult; export type Results = VariableWithResult[]; export type VariableWithResult = { readonly variable: Variable; readonly result: Result; }; export type ErrorResult = { readonly error: Error; readonly maybe?: never; }; export type ValueResult = { readonly error?: never; readonly maybe: Maybe>; };