interface promises.FlagAndOpenModePropertiesoptionalmode: Mode | undefinedoptionalflag: OpenMode | undefined