add missing import; export temple layout func type