/** Attempt every independent cleanup and preserve each failure. */ export function closeVerifierResources( tasks: readonly (() => void | Promise)[], ): Promise; /** Finish one operation and its cleanup without losing either failure. */ export function withVerifierCleanup( operation: () => T | Promise, cleanupTasks: readonly (() => void | Promise)[], ): Promise; /** The leaf reasons of a verifier failure, through nested AggregateErrors. */ export function verifierFailureReasons(cause: unknown): string[];