import type { Contract } from 'autumndb'; import type { IntegrationDefinition, PipelineOpts, SequenceItem } from './types'; /** * @summary Import a sequence of contracts * @function * @public * * @param context - worker execution context * @param sequence - card sequence * @param options - options object * @param options.origin - origin id * @returns inserted cards * * @example * const result = await pipeline.importCards({ ... }, [ * { * time: new Date(), * card: { ... }, * }, * { * time: new Date(), * card: { ... }, * }, * { * time: new Date(), * card: { ... }, * }, * ], { * origin: 'e9b74e2a-3553-4188-8ab8-a67e92aedbe2', * }); */ export declare const importCards: (context: PipelineOpts['context'], sequence: Array, options?: any) => Promise[]; }>[]>; /** * @summary Translate an external event * @function * @public * * @param integration - integration class * @param externalEvent - external event contract * @param options - options * @param options.context - execution context * @returns inserted contracts * * @example * const contracts = await pipeline.translateExternalEvent(MyIntegration, { * type: 'external-event', * ... * }, { * context: { ... }, * }); */ export declare const translateExternalEvent: (integration: IntegrationDefinition, externalEvent: Contract, options: PipelineOpts) => Promise[]; }>[]>; /** * @summary Mirror a contract back * @function * @public * * @param integration - integration class * @param contract - local contract * @param options - options object * @param options.context - execution context * @param options.actor - actor id * @returns inserted contracts * * @example * const contracts = await pipeline.mirrorCard(MyIntegration, { * type: 'card', * ... * }, { * context: { ... }, * actor: 'b76a4589-cac6-4293-b448-0440b5c66498', * }); */ export declare const mirrorCard: (integration: IntegrationDefinition, contract: Contract, options: PipelineOpts) => Promise[]; }>[]>;