import { FlattenObjectKeys } from '../types'; type ErrorsRecord> = Partial, string>>; export interface State> { current: T; isSubmitting: boolean; errors: ErrorsRecord; isDirty: boolean; } export type Action> = { type: 'MARK_CLEAN'; } | { type: 'LOADING_START'; } | { type: 'LOADING_STOP'; } | { type: 'ERRORS'; errors: ErrorsRecord; } | { type: 'ON_NEXT'; next: T; }; export declare const reducer: >(current: State, action: Action) => State; export {};