import type { Plugin } from "vite"; /** * Vite plugin that compiles GSettings schemas when imported. * * Intercepts imports of `.gschema.xml` files. The import's default export * is the schema ID extracted from the XML, so downstream code can use it * directly with `useSetting`. When the file contains multiple `` * elements, each ID is also available as a named export (with dots * replaced by underscores). * * **Dev mode:** Copies the schema to a temporary directory, runs * `glib-compile-schemas`, and sets `GSETTINGS_SCHEMA_DIR` so * `Gio.Settings` can find the compiled result. Schema file changes * trigger recompilation via HMR. * * **Build mode:** All imported schemas are compiled together at build time * into a single `gschemas.compiled` asset emitted next to the bundle. At * runtime a shared init module sets `GSETTINGS_SCHEMA_DIR` to the * bundle's directory once, regardless of how many schemas are imported. * * @example * ```ts * import schemaId from "./com.example.myapp.gschema.xml"; * const [value, setValue] = useSetting(schemaId, "my-key", "string"); * ``` */ export declare function gtkxGSettings(): Plugin; //# sourceMappingURL=vite-plugin-gtkx-gsettings.d.ts.map