import { ResolvedAttestationManifest } from "./types";
export declare const REGISTRY_REQUEST_TIMEOUTS: {
    response_timeout: number;
    read_timeout: number;
};
interface RegistryImageRef {
    registryBase: string;
    repo: string;
    imageReference: string;
    username?: string;
    password?: string;
    platform?: {
        os: string;
        architecture: string;
        variant?: string;
    };
}
export declare function fetchAttestationsFromRegistry(ref: RegistryImageRef): Promise<ResolvedAttestationManifest[]>;
/**
 * Keeps only the in-toto statements that attest the scanned image manifest.
 * A registry index holds one attestation manifest per platform, and the lookup
 * above can return another platform's, so unverifiable provenance is dropped
 * rather than attributed to the wrong image.
 */
export declare function keepAttestationsForManifest(attestations: ResolvedAttestationManifest[], scannedManifestDigest: string | undefined): ResolvedAttestationManifest[];
export declare function parsePlatform(platform?: string): {
    os: string;
    architecture: string;
    variant?: string;
} | undefined;
export {};
