import { AmfParser } from './amf-server/AmfParser.js';

export interface AmfProcessItem {
  parser: AmfParser;
}

export type ProcessingStatus = 'initialized' | 'running' | 'finished' | 'failed';

export interface ContentParseCommand {
  vendor: string;
  mime: string;
  content: string;
}

export interface ParserProcessResult {
  status: 'finished' | 'failed';
  result: unknown;
}

export interface ApiEditorPreviousRequest {
  ctrl: AbortController;
  key: string;
}

export interface ParserProcessMessage {
  action: string;
  command: ContentParseCommand | unknown;
}
