/** A per-job handler declared by a consumer module (receives the job payload). */ export type QueueHandler = (payload: unknown) => unknown | Promise; /** * Return the per-job handler that a consumer module declares for `topic`. * * A consumer module (e.g. the one `generate queue ` scaffolds) exposes a * default-export config; when its `topic` matches, `queue work` drives the * consumer through that config's per-job `handle` callable — so the worker owns * the poll loop (honouring --poll and the bounded --once drain) instead of the * consumer's own endless loop. Returns the callable, or null when no consumer in * `servicesDir` targets this topic. Mirrors Python's _resolve_queue_handler. */ export declare function resolveQueueHandler(servicesDir: string, topic: string): Promise; /** Subcommand names, in order — surfaced in `commands --json` for the tina4 client. */ export declare const QUEUE_SUBCOMMAND_NAMES: string[]; /** * Top-level queue command: run workers and manage jobs. Dispatches to the * subcommand handlers above; unknown / missing subcommands fail loud (exit 1). */ export declare function queueCommand(args?: string[]): Promise;