import type { Db } from "@rudderhq/db";
import { executionWorkspaces } from "@rudderhq/db";
import type { RunWorkspace } from "@rudderhq/shared";
type ExecutionWorkspaceRow = typeof executionWorkspaces.$inferSelect;
declare function toRunWorkspace(row: ExecutionWorkspaceRow): RunWorkspace;
export declare function runWorkspaceService(db: Db): {
    list: (orgId: string, filters?: {
        projectId?: string;
        projectWorkspaceId?: string;
        issueId?: string;
        status?: string;
        reuseEligible?: boolean;
    }) => Promise<RunWorkspace[]>;
    getById: (id: string) => Promise<RunWorkspace | null>;
    create: (data: typeof executionWorkspaces.$inferInsert) => Promise<RunWorkspace | null>;
    update: (id: string, patch: Partial<typeof executionWorkspaces.$inferInsert>) => Promise<RunWorkspace | null>;
};
/** @deprecated Use runWorkspaceService. */
export declare const executionWorkspaceService: typeof runWorkspaceService;
/** @deprecated Use toRunWorkspace. */
export declare const toExecutionWorkspace: typeof toRunWorkspace;
export { toRunWorkspace };
//# sourceMappingURL=execution-workspaces.d.ts.map