export type ActionContextInput = { eventName: string; payload: { pull_request?: { number?: number; head?: { sha?: string; }; }; workflow_run?: { head_sha?: string; pull_requests?: { number?: number; }[]; }; }; repo: Record; github: { rest: { repos: { listPullRequestsAssociatedWithCommit: (args: Record) => Promise<{ data: { state?: string; number?: number; head?: { sha?: string; }; }[]; }>; }; }; }; }; export type ActionContextResult = { prNumber: string; headSha: string; }; export declare function resolveActionContext({ eventName, payload, repo, github, }: ActionContextInput): Promise;