@karmaniverous/jeeves-watcher
    Preparing search index...

    Interface DocumentProcessorInterface

    Abstraction for document processing operations.

    Enables factories and consumers to depend on an interface (DIP).

    interface DocumentProcessorInterface {
        deleteFile(filePath: string): Promise<void>;
        moveFile(oldPath: string, newPath: string): Promise<void>;
        processFile(filePath: string): Promise<void>;
        processMetadataUpdate(
            filePath: string,
            metadata: Record<string, unknown>,
        ): Promise<Record<string, unknown> | null>;
        processRulesUpdate(
            filePath: string,
        ): Promise<Record<string, unknown> | null>;
        renderFile(filePath: string): Promise<RenderResult>;
        updateRules(
            compiledRules: CompiledRule[],
            templateEngine?: TemplateEngine,
            customMapLib?: Record<string, (...args: unknown[]) => unknown>,
        ): void;
    }

    Implemented by

    Index

    Methods