import { E as VivliostyleInlineConfig } from "./schema-DFj2EinN.js";
import { t as build$1 } from "./build-re0kdc5z.js";
import { t as create$1 } from "./create-BF3vSlSR.js";
import { t as preview$1 } from "./preview-BEB_iy9U.js";
import { t as createVitePlugin } from "./vite-adapter-On_L0LUL.js";
import * as v from "valibot";
import { VFM, readMetadata } from "@vivliostyle/vfm";
//#region src/config/define.ts
/**
* Define the configuration for Vivliostyle CLI.
*/
function defineConfig(config) {
	return config;
}
//#endregion
//#region src/index.ts
/**
* Build publication file(s) from the given configuration.
*
* ```ts
* import { build } from '@vivliostyle/cli';
* build({
*   configPath: './vivliostyle.config.js',
*   logLevel: 'silent',
* });
* ```
*
* @param options
* @returns
*/
function build(options) {
	return build$1(v.parse(VivliostyleInlineConfig, options));
}
/**
* Open a browser for previewing the publication.
*
* @param options
* @returns
*/
function preview(options) {
	return preview$1(v.parse(VivliostyleInlineConfig, options));
}
/**
* Scaffold a new Vivliostyle project.
*
* @param options
* @returns
*/
function create(options) {
	return create$1(v.parse(VivliostyleInlineConfig, options));
}
//#endregion
export { VFM, build, create, createVitePlugin, defineConfig, preview, readMetadata };

//# sourceMappingURL=index.js.map