import { Dispatch } from 'react'; import { AnyAction } from '@reduxjs/toolkit'; import { PropsUseTable } from '../smart/tableGenerator/TableGenerator.types'; export declare type RolesSelectItems = { label: string; value: string; }[]; export declare type ParticipantProps = { name?: string; lastName?: string; currentCohortNumber?: string; currentCohortName?: string; } & T; export declare type User = { id: number; firstname: string; lastname: string; email: string; password: string; role: string; email_verified: number; }; export declare type Actions = Promise & { unwrap: () => Promise; }; export declare type ActionsMutations = { updateModal: any; createClose: ({ dispatch }: { dispatch: Dispatch; }) => () => void; deleteUser: ({ id }: Partial) => Actions; updateUser: (_: User) => Actions; rolesSelectItems: RolesSelectItems; }; export declare type CreateActionMutations = { createUser: (_: User) => Actions; updateModal: any; createClose: ({ dispatch }: { dispatch: Dispatch; }) => () => void; rolesSelectItems: RolesSelectItems; }; export declare type CreateUserDashboardProps = CreateActionMutations & ActionsMutations & { emptyStateLog: any; updateCredentials: any; rolesSelectItems: RolesSelectItems; } & PropsUseTable & T;