import React from 'react';
import type { StoredModel } from '../../../contexts/ModelContext';
import type { SettingKey } from '../components/ModelControls';
export interface SettingEditorState {
    key: SettingKey;
    value: string | number;
}
export interface UseModelSettingsEditorOptions {
    defaultModel: StoredModel | null;
    updateModel: (id: string, patch: Partial<StoredModel>) => void;
}
export interface UseModelSettingsEditorResult {
    settingEditor: SettingEditorState | null;
    settingInputValue: string;
    settingError: string | null;
    openSettingEditor: (key: SettingKey, currentValue?: number | string) => void;
    closeSettingEditor: () => void;
    handleSettingInputChange: (value: string) => void;
    handleSettingSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;
}
export declare const useModelSettingsEditor: ({ defaultModel, updateModel }: UseModelSettingsEditorOptions) => UseModelSettingsEditorResult;
//# sourceMappingURL=useModelSettingsEditor.d.ts.map