import { FormManager, Schema, SchemaKt, ValidationMode } from "@kform/core";
/**
 * Hook that creates a new form manager given a {@link schema} and
 * [external contexts]{@link externalContexts}.
 *
 * Note that a new instance of a form manager will be created every time
 * {@link schema} changes; the external contexts and validation mode, however,
 * may change over time and the hook will simply update the external contexts of
 * the current form manager.
 * @param schema Schema of the form, used to create a new instance of a form
 * manager.
 * @param initialValue Initial form value.
 * @param externalContexts External contexts available to validations of
 * {@link schema}.
 * @param validationMode Validation mode (automatic or manual validation).
 * @returns New form manager.
 */
export declare function useNewFormManager(schema: Schema | SchemaKt, initialValue?: unknown, externalContexts?: Record<string, unknown>, validationMode?: ValidationMode): FormManager;
