import { Dispatch, SetStateAction } from 'react';
import { ServiceReturnType } from '@parlor/contexts/services-2/core';
import { DEFAULT_UI_STATE } from '../dynamic-score-creation-modal.constants';
export declare namespace DSModalProvider {
    type StateAction<T> = Dispatch<SetStateAction<T>>;
    export type FormState = {
        isDirty: boolean;
        isValid: boolean;
    };
    export type Actions = {
        onActionsToggled?: StateAction<boolean>;
        onClose?: () => void;
        onDelete?: () => Promise<unknown>;
        onDynamicScoreChange?: StateAction<typeof DEFAULT_UI_STATE>;
        onFormStateChange?: StateAction<FormState>;
        onSave?: (data: any) => Promise<{
            id: string;
        }>;
        onSaveDraft?: (values: any) => Promise<ServiceReturnType<'dynamicScore', 'create'> | ServiceReturnType<'dynamicScore', 'update'>>;
        onStepChange?: (step: number) => void;
        resetValues?: () => void;
    };
    export type Values = {
        actionsPaused?: boolean;
        dynamicScore?: typeof DEFAULT_UI_STATE;
        error?: Error;
        formState?: FormState;
        loading?: boolean;
        step?: number;
    };
    export type Props = {
        actions: Actions;
        children: React.ReactNode;
        values?: Values;
    };
    export {};
}
