//#region src/integrity.d.ts
interface SriUrlOptions {
  resolveEntryUrl?: boolean;
  maxBytes?: number;
}
declare function computeSriHash(content: string | Buffer): string;
declare function computeSriHashForUrl(url: string, options?: SriUrlOptions): Promise<string | null>;
declare function resolveEntryUrl(url: string): string;
declare function verifySriForUrl(url: string, expectedIntegrity: string, options?: SriUrlOptions): Promise<void>;
declare class IntegrityRegistry {
  private hashes;
  register(url: string, integrity: string): void;
  registerEntry(baseUrl: string, integrity: string): void;
  get(url: string): string | undefined;
  has(url: string): boolean;
  entries(): IterableIterator<[string, string]>;
}
declare function verifyConfigAgainstChain(localConfig: Record<string, unknown>, bosUrl: string): Promise<{
  verified: boolean;
  mismatches: string[];
}>;
interface DeployResultEntry {
  label: string;
  url: string;
  integrity?: string;
  urlField: string;
  integrityField?: string;
}
declare function writeDeployResult(opts: {
  url: string;
  integrity?: string | null;
  bosConfigPath: string;
  urlField: string;
  integrityField?: string;
  label: string;
}): void;
declare function readDeployResults(resultDir: string): DeployResultEntry[];
declare function readAllDeployResults(baseDir: string): DeployResultEntry[];
declare function applyDeployResults(config: Record<string, unknown>, results: DeployResultEntry[]): Record<string, unknown>;
declare function cleanDeployResultDir(baseDir: string): void;
declare function findPluginKey(bosConfigPath: string, pluginDir: string): string | null;
//#endregion
export { DeployResultEntry, IntegrityRegistry, applyDeployResults, cleanDeployResultDir, computeSriHash, computeSriHashForUrl, findPluginKey, readAllDeployResults, readDeployResults, resolveEntryUrl, verifyConfigAgainstChain, verifySriForUrl, writeDeployResult };
//# sourceMappingURL=integrity.d.mts.map