>|string tree 返回节点数组,其余返回字符串 */ public function document(Document $document, RenderContext $ctx): array|string; }