import type { Db } from "@rudderhq/db";
import type { RudderAppOptions } from "./types.js";
export declare function createPluginHostRuntime(db: Db, opts: RudderAppOptions): {
    loader: import("../services/plugin-loader.helpers.js").PluginLoader;
    scheduler: import("../services/plugin-job-scheduler.js").PluginJobScheduler;
    jobStore: {
        syncJobDeclarations(pluginId: string, declarations: import("@rudderhq/plugin-sdk").PluginJobDeclaration[]): Promise<void>;
        listJobs(pluginId: string, status?: "active" | "failed" | "paused"): Promise<({
            createdAt: Date;
            status: "active" | "failed" | "paused";
            id: string;
            updatedAt: Date;
            pluginId: string;
            schedule: string;
            jobKey: string;
            lastRunAt: Date | null;
            nextRunAt: Date | null;
        })[]>;
        getJobByKey(pluginId: string, jobKey: string): Promise<({
            createdAt: Date;
            status: "active" | "failed" | "paused";
            id: string;
            updatedAt: Date;
            pluginId: string;
            schedule: string;
            jobKey: string;
            lastRunAt: Date | null;
            nextRunAt: Date | null;
        }) | null>;
        getJobById(jobId: string): Promise<({
            createdAt: Date;
            status: "active" | "failed" | "paused";
            id: string;
            updatedAt: Date;
            pluginId: string;
            schedule: string;
            jobKey: string;
            lastRunAt: Date | null;
            nextRunAt: Date | null;
        }) | null>;
        getJobByIdForPlugin(pluginId: string, jobId: string): Promise<({
            createdAt: Date;
            status: "active" | "failed" | "paused";
            id: string;
            updatedAt: Date;
            pluginId: string;
            schedule: string;
            jobKey: string;
            lastRunAt: Date | null;
            nextRunAt: Date | null;
        }) | null>;
        updateJobStatus(jobId: string, status: "active" | "failed" | "paused"): Promise<void>;
        updateRunTimestamps(jobId: string, lastRunAt: Date, nextRunAt: Date | null): Promise<void>;
        deleteAllJobs(pluginId: string): Promise<void>;
        createRun(input: import("../services/plugin-job-store.js").CreateJobRunInput): Promise<{
            logs: string[];
            startedAt: Date | null;
            createdAt: Date;
            status: "pending" | "cancelled" | "running" | "failed" | "queued" | "succeeded";
            error: string | null;
            id: string;
            finishedAt: Date | null;
            pluginId: string;
            jobId: string;
            trigger: "manual" | "schedule" | "retry";
            durationMs: number | null;
        }>;
        markRunning(runId: string): Promise<void>;
        completeRun(runId: string, input: import("../services/plugin-job-store.js").CompleteJobRunInput): Promise<void>;
        getRunById(runId: string): Promise<({
            logs: string[];
            startedAt: Date | null;
            createdAt: Date;
            status: "pending" | "cancelled" | "running" | "failed" | "queued" | "succeeded";
            error: string | null;
            id: string;
            finishedAt: Date | null;
            pluginId: string;
            jobId: string;
            trigger: "manual" | "schedule" | "retry";
            durationMs: number | null;
        }) | null>;
        listRunsByJob(jobId: string, limit?: number): Promise<({
            logs: string[];
            startedAt: Date | null;
            createdAt: Date;
            status: "pending" | "cancelled" | "running" | "failed" | "queued" | "succeeded";
            error: string | null;
            id: string;
            finishedAt: Date | null;
            pluginId: string;
            jobId: string;
            trigger: "manual" | "schedule" | "retry";
            durationMs: number | null;
        })[]>;
        listRunsByPlugin(pluginId: string, status?: import("@rudderhq/plugin-sdk").PluginJobRunStatus, limit?: number): Promise<({
            logs: string[];
            startedAt: Date | null;
            createdAt: Date;
            status: "pending" | "cancelled" | "running" | "failed" | "queued" | "succeeded";
            error: string | null;
            id: string;
            finishedAt: Date | null;
            pluginId: string;
            jobId: string;
            trigger: "manual" | "schedule" | "retry";
            durationMs: number | null;
        })[]>;
    };
    workerManager: import("../services/plugin-worker-manager.js").PluginWorkerManager;
    toolDispatcher: import("../services/plugin-tool-dispatcher.js").PluginToolDispatcher;
    start(): Promise<void>;
    close(): Promise<void>;
};
export type PluginHostRuntime = ReturnType<typeof createPluginHostRuntime>;
//# sourceMappingURL=plugin-host-runtime.d.ts.map