import express from "express"; import { MinionArguments } from "./commonYargs.js"; import { Record, AspectDefinition } from "@magda/typescript-common/dist/generated/registry/api.js"; import { default as AuthorizedRegistryClient } from "@magda/typescript-common/dist/registry/AuthorizedRegistryClient.js"; export type onRecordFoundType = (record: Record, registry: AuthorizedRegistryClient) => Promise; export default interface MinionOptions { argv: MinionArguments; id: string; aspects: string[]; optionalAspects: string[]; writeAspectDefs: AspectDefinition[]; async?: boolean; onRecordFound: onRecordFoundType; express?: () => express.Express; maxRetries?: number; concurrency?: number; crawlerRecordFetchNumber?: number; includeEvents?: boolean; includeRecords?: boolean; includeAspectDefinitions?: boolean; dereference?: boolean; }