import { type InternalBot, type WorkflowRunStatus } from './shared'; export declare function listWorkflows(bot: InternalBot, owner: string, repo: string): Promise<{ id: number; node_id: string; name: string; path: string; state: "active" | "deleted" | "disabled_fork" | "disabled_inactivity" | "disabled_manually"; created_at: string; updated_at: string; url: string; html_url: string; badge_url: string; deleted_at?: string; }[]>; export declare function getWorkflow(bot: InternalBot, owner: string, repo: string, workflowId: number | string): Promise<{ id: number; node_id: string; name: string; path: string; state: "active" | "deleted" | "disabled_fork" | "disabled_inactivity" | "disabled_manually"; created_at: string; updated_at: string; url: string; html_url: string; badge_url: string; deleted_at?: string; }>; export declare function triggerWorkflow(bot: InternalBot, owner: string, repo: string, workflowId: number | string, ref: string, inputs?: Record): Promise; export declare function listWorkflowRuns(bot: InternalBot, owner: string, repo: string, workflowId?: number | string, status?: WorkflowRunStatus): Promise<{ id: number; name?: string | null; node_id: string; check_suite_id?: number; check_suite_node_id?: string; head_branch: string | null; head_sha: string; path: string; run_number: number; run_attempt?: number; referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null; event: string; status: string | null; conclusion: string | null; workflow_id: number; url: string; html_url: string; pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null; created_at: string; updated_at: string; actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"]; triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"]; run_started_at?: string; jobs_url: string; logs_url: string; check_suite_url: string; artifacts_url: string; cancel_url: string; rerun_url: string; previous_attempt_url?: string | null; workflow_url: string; head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"]; repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"]; head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"]; head_repository_id?: number; display_title: string; }[]>; export declare function getWorkflowRun(bot: InternalBot, owner: string, repo: string, runId: number): Promise<{ id: number; name?: string | null; node_id: string; check_suite_id?: number; check_suite_node_id?: string; head_branch: string | null; head_sha: string; path: string; run_number: number; run_attempt?: number; referenced_workflows?: import("@octokit/openapi-types").components["schemas"]["referenced-workflow"][] | null; event: string; status: string | null; conclusion: string | null; workflow_id: number; url: string; html_url: string; pull_requests: import("@octokit/openapi-types").components["schemas"]["pull-request-minimal"][] | null; created_at: string; updated_at: string; actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"]; triggering_actor?: import("@octokit/openapi-types").components["schemas"]["simple-user"]; run_started_at?: string; jobs_url: string; logs_url: string; check_suite_url: string; artifacts_url: string; cancel_url: string; rerun_url: string; previous_attempt_url?: string | null; workflow_url: string; head_commit: import("@octokit/openapi-types").components["schemas"]["nullable-simple-commit"]; repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"]; head_repository: import("@octokit/openapi-types").components["schemas"]["minimal-repository"]; head_repository_id?: number; display_title: string; }>; export declare function cancelWorkflowRun(bot: InternalBot, owner: string, repo: string, runId: number): Promise; export declare function rerunWorkflow(bot: InternalBot, owner: string, repo: string, runId: number): Promise;