In Frank R. Stockton's 1882 story "The Lady or the Tiger?", the princess learns nothing definitive about what lies behind the two doors.
She knows the doors conceal a lady (her rival, whom she hates) and a tiger (death for her lover). She signals her lover to choose the right-hand door—but the story ends before revealing which door she indicated. The princess is trapped in an impossible dilemma: send her lover to another woman, or to his death. Her "knowledge" is the setup; the story's power lies in withholding the choice, forcing the reader to judge her heart.
She learns no secret, receives no sign. The ambiguity is the point.