type Params = { fromDraft: (draft: Draft) => { value: Value; } | "unparsable"; onChange?: (value: Value) => void; onChangesDone: (value: Value) => void; toDraft: (value: Value) => Draft; value: Value; }; type Result<_Value, Draft> = { draftToDisplay: Draft; isEditing: boolean; onChange: (draft: Draft) => void; onDoneEditing: () => void; onStartEditing: () => void; showInvalidDraftError: boolean; }; export declare function useCustomInputWithDraftState(params: Params): Result; export {};