import type { Db } from "@paperclipai/db";
import { workspaceRuntimeServices } from "@paperclipai/db";
type WorkspaceRuntimeServiceRow = typeof workspaceRuntimeServices.$inferSelect;
export declare function selectCurrentRuntimeServiceRows(rows: WorkspaceRuntimeServiceRow[]): {
    id: string;
    status: string;
    createdAt: Date;
    updatedAt: Date;
    companyId: string;
    provider: string;
    url: string | null;
    issueId: string | null;
    command: string | null;
    projectId: string | null;
    projectWorkspaceId: string | null;
    executionWorkspaceId: string | null;
    scopeType: string;
    scopeId: string | null;
    serviceName: string;
    lifecycle: string;
    reuseKey: string | null;
    cwd: string | null;
    port: number | null;
    providerRef: string | null;
    ownerAgentId: string | null;
    startedByRunId: string | null;
    lastUsedAt: Date;
    startedAt: Date;
    stoppedAt: Date | null;
    stopPolicy: Record<string, unknown> | null;
    healthStatus: string;
}[];
export declare function listCurrentRuntimeServicesForProjectWorkspaces(db: Db, companyId: string, projectWorkspaceIds: string[]): Promise<Map<string, {
    id: string;
    status: string;
    createdAt: Date;
    updatedAt: Date;
    companyId: string;
    provider: string;
    url: string | null;
    issueId: string | null;
    command: string | null;
    projectId: string | null;
    projectWorkspaceId: string | null;
    executionWorkspaceId: string | null;
    scopeType: string;
    scopeId: string | null;
    serviceName: string;
    lifecycle: string;
    reuseKey: string | null;
    cwd: string | null;
    port: number | null;
    providerRef: string | null;
    ownerAgentId: string | null;
    startedByRunId: string | null;
    lastUsedAt: Date;
    startedAt: Date;
    stoppedAt: Date | null;
    stopPolicy: Record<string, unknown> | null;
    healthStatus: string;
}[]>>;
export declare function listCurrentRuntimeServicesForExecutionWorkspaces(db: Db, companyId: string, executionWorkspaceIds: string[]): Promise<Map<string, {
    id: string;
    status: string;
    createdAt: Date;
    updatedAt: Date;
    companyId: string;
    provider: string;
    url: string | null;
    issueId: string | null;
    command: string | null;
    projectId: string | null;
    projectWorkspaceId: string | null;
    executionWorkspaceId: string | null;
    scopeType: string;
    scopeId: string | null;
    serviceName: string;
    lifecycle: string;
    reuseKey: string | null;
    cwd: string | null;
    port: number | null;
    providerRef: string | null;
    ownerAgentId: string | null;
    startedByRunId: string | null;
    lastUsedAt: Date;
    startedAt: Date;
    stoppedAt: Date | null;
    stopPolicy: Record<string, unknown> | null;
    healthStatus: string;
}[]>>;
export {};
//# sourceMappingURL=workspace-runtime-read-model.d.ts.map