export default function commentFactory(commentsEnabled: boolean, comments: Record): (id: string) => string;