import { f as JobHandlerBase, I as IJobOrchestrator, d as JobContext } from '../../../job-orchestrator.protocol-DubMVbm9.js';
import { IEventBus } from '../events/event-bus.protocol.js';
import { IJobBridge, BridgeRegistry } from './bridge.protocol.js';
import '../jobs/job-orchestration.schema.js';
import 'drizzle-orm/pg-core';
import 'drizzle-orm';
import '@nestjs/common';
import '../events/event-registry.js';
import '../../types/drizzle.js';
import 'drizzle-orm/node-postgres';
import './bridge-delivery.schema.js';

/** Stable canonical job type — referenced by BRIDGE-4 wrapper inserts. */
declare const BRIDGE_DELIVERY_JOB_TYPE: "@framework/bridge_delivery";
interface BridgeDeliveryInput {
    /** PK of the `bridge_delivery` row this wrapper services. */
    deliveryId: string;
}
declare class BridgeDeliveryHandler extends JobHandlerBase<BridgeDeliveryInput, {
    runId: string;
} | {
    skipped: true;
    reason: string;
}> {
    private readonly repo;
    private readonly orchestrator;
    private readonly events;
    private readonly registry;
    private readonly multiTenant;
    private readonly classLogger;
    constructor(repo: IJobBridge, orchestrator: IJobOrchestrator, events: IEventBus, registry: BridgeRegistry, multiTenant?: boolean);
    run(ctx: JobContext<BridgeDeliveryInput>): Promise<{
        runId: string;
    } | {
        skipped: true;
        reason: string;
    }>;
    /**
     * Locate the registry entry for `(eventType, triggerId)`. Linear scan
     * over the per-event-type array — N is the number of triggers declared
     * for one event, typically 1–5; the table is not big enough to warrant
     * a secondary index.
     */
    private findRegistryEntry;
}

export { BRIDGE_DELIVERY_JOB_TYPE, BridgeDeliveryHandler, type BridgeDeliveryInput, BRIDGE_DELIVERY_JOB_TYPE as BridgeDeliveryJobType };
