loadLayoutPlugin = async () => {
	const { layout } = getEvidenceConfig();

	if (!layout) return null;
	const pack = await loadPluginPackage(layout);

	if (!pack || !isLayoutPlugin(pack)) {
		throw new EvidenceError(
			`${layout} was specified as a layout, but is not a valid layout plugin`
		);
	}

	return pack;
}
@returns {Promise<null | import("../schemas/plugin-package.schema.js").LayoutPackage & {dir: string}>}