/**
 * Collapse all info properties into a single object.
 *
 * @remarks
 * This function iterates the entire cause chain, assigning any info properties
 * together onto the same object. Values encountered earlier in the cause chain
 * are prioritized.
 *
 * @param err - Error instance from which to fetch info.
 * @returns A plain object containing all info properties.
 */
export declare function collapseInfo(err: Error): Record<string, any>;
