import type { QueuePlugin } from "../interfaces/plugin.ts"; /** * Simple test plugin that tracks the lifecycle of jobs and plugin hooks. * Used for testing plugin functionality. */ export interface TestPluginState { initialized: boolean; disposed: boolean; beforePollCalls: number; beforeJobCalls: number; afterJobCalls: number; processedJobs: string[]; errors: unknown[]; queueName?: string; } export declare function createTestPlugin(): { plugin: QueuePlugin; state: TestPluginState; }; /** * Test plugin that stops processing after a certain number of polls. */ export declare function createStopAfterPlugin(stopAfter: number): { plugin: QueuePlugin; state: { pollCount: number; }; }; /** * Test plugin that enriches jobs with additional metadata. */ export declare function createEnrichmentPlugin(): QueuePlugin;