import type { ArtifactClassification } from './classify.mts'; import type { GithubArtifact as ArtifactLike } from './github.mts'; export type { ArtifactLike }; export interface DeletionSummary { deletedCount: number; bytesFreed: number; } export declare function summarize(deleted: Array>): DeletionSummary; export declare function planRunDeletions(artifacts: ArtifactLike[], classify: (name: string) => ArtifactClassification): ArtifactLike[]; export declare function isSweepCandidate(artifact: ArtifactLike, cutoffIso: string, classify: (name: string) => ArtifactClassification): boolean; export interface PagingState { page: number; consecutiveExpiredPages: number; } export declare function shouldStopPaging(pageArtifacts: ArtifactLike[], state: PagingState): boolean; export declare function nextPagingState(pageArtifacts: ArtifactLike[], state: PagingState): PagingState; export declare function planSweepDeletions(candidates: ArtifactLike[], getConclusion: (runId: number) => Promise): Promise;