import { CamelResource } from '../models/camel';
import { CamelYamlDsl, Integration, Kamelet, KameletBinding, Pipe } from '@kaoto/camel-catalog/types';

export interface CamelResourceSerializer {
  parse: (code: string) => CamelYamlDsl | Integration | Kamelet | KameletBinding | Pipe | undefined;
  serialize: (resource: CamelResource) => string;
  getComments: () => string[];
  setComments: (comments: string[]) => void;
}
