import type { TResourceError } from '../components/errors/Errors'; import type { BaseError, TAPIError } from '../typings/errors'; import type { ValueIteratee } from 'lodash'; import type { Dispatch } from 'react'; interface GetErrorsParams { error: TAPIError; resource: TResourceError; field?: string; attributes?: Record; } export default function getErrors({ error, resource, field, attributes }: GetErrorsParams): BaseError[]; interface SetErrorsArgs { currentErrors?: BaseError[]; newErrors?: BaseError[]; dispatch?: D; filterBy?: ValueIteratee; } export declare function setErrors>({ currentErrors, newErrors, dispatch, filterBy }: SetErrorsArgs): BaseError[]; export {};