import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core'; import { Actor } from '@comunica/core'; import type { IActionContext } from '@comunica/types'; /** * A comunica actor for context-preprocess events. * * Actor types: * * Input: IAction: A context that will be processed. * * Test: * * Output: IActorContextPreprocessOutput: The resulting context. * * @see IActionContextPreprocess * @see IActorContextPreprocessOutput */ export declare abstract class ActorContextPreprocess extends Actor { /** * @param args - * \ @defaultNested { a } bus * \ @defaultNested {Context preprocessing failed} busFailMessage */ constructor(args: IActorContextPreprocessArgs); } export interface IActionContextPreprocess extends IAction { /** * If the query processing is being initialized. * This is typically used for setting query-wide defaults. * This will be false for initializing source-specific contexts. */ initialize?: boolean; } export interface IActorContextPreprocessOutput extends IActorOutput { /** * A context object. * Can be null. */ context: IActionContext; } export type IActorContextPreprocessArgs = IActorArgs; export type MediatorContextPreprocess = Mediate;