import type { FetchError } from 'ofetch'; import type { ApiResourceEvent } from '../../../resources/resources-manager.js'; import type { CwaErrorEvent, CwaErrorStateInterface } from './state.js'; export interface CwaErrorActionsInterface { error(event: ApiResourceEvent, error: FetchError): void; manual(error: CwaErrorEvent): void; clear(): void; removeById(id: number): void; removeByEndpoint(endpoint: string): void; } export default function (errorState: CwaErrorStateInterface): CwaErrorActionsInterface;