// Types for hosted-completion-logic.js — see hosted-completion-contract.d.ts's header for why these // are hand-written rather than `@ts-expect-error`'d. import type { CompletionCaller, CompletionRecord, CompletionTombstone, StepSpec } from "./hosted-completion-contract.d.ts"; export const BUILD_JOB_RETENTION_MS: number; export const HOSTED_COMPLETION_RETENTION_MS: number; export function resumePoint(record: CompletionRecord | CompletionTombstone): StepSpec | null; export function stepsExhausted(record: CompletionRecord): boolean; export function deploymentKey(siteKey: string, deploymentBuildId: string): string; export interface LatestPointer { operationId: string; startedAt: string; } export function selectLatest( entries: ReadonlyArray, ): LatestPointer | null; export function runnerSubmissionAttempted(record: { runnerSubmissionAttempted?: boolean }): boolean; export function runnerTerminal(record: { runner: { phase?: string } | null }): boolean; export function compactIfDue( record: CompletionRecord & { tombstone?: true }, now: number, compactAfterMs?: number, ): CompletionRecord | CompletionTombstone; export { retentionDecision, tombstoneFor } from "./hosted-completion-contract.d.ts"; export type { CompletionCaller };