/** * Queue Admin Runner -- Programmatic API for the queue admin CLI. * * Extracts ALL command handlers from the queue-admin bin script so they can be * invoked programmatically (e.g. from a Next.js route handler or test) without * process.exit / dotenv / argv coupling. */ export type QueueAdminCommand = 'list' | 'sessions' | 'workers' | 'clear-claims' | 'clear-queue' | 'clear-all' | 'reset' | 'remove'; export interface QueueAdminRunnerConfig { /** Command to execute */ command: QueueAdminCommand; /** Session ID for 'remove' command (partial match) */ sessionId?: string; } export declare const C: { readonly reset: "\u001B[0m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly cyan: "\u001B[36m"; readonly gray: "\u001B[90m"; }; /** * Run a queue admin command programmatically. * * Throws if REDIS_URL is not set or if the 'remove' command is called without * a sessionId. */ export declare function runQueueAdmin(config: QueueAdminRunnerConfig): Promise; //# sourceMappingURL=queue-admin-runner.d.ts.map