You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
942 B

import type Context from './contexts/context.js';
import type Processor from './processor.js';
import type { Filter } from './types.js';
declare class Pipe<TContext extends Context<any>> {
name: string;
filters: Filter<TContext>[];
processor?: Processor;
debug?: boolean;
resultCheck?: ((context: TContext) => void) | null;
constructor(name: string);
process(input: TContext): void;
log(msg: string): void;
append(...args: Filter<TContext>[]): this;
prepend(...args: Filter<TContext>[]): this;
indexOf(filterName: string): number;
list(): string[];
after(filterName: string, ...params: Filter<TContext>[]): this;
before(filterName: string, ...params: Filter<TContext>[]): this;
replace(filterName: string, ...params: Filter<TContext>[]): this;
remove(filterName: string): this;
clear(): this;
shouldHaveResult(should?: boolean): this | undefined;
}
export default Pipe;