// Hand-maintained declarations for the "@salla.sa/twilight-bundles/vite-plugins/demo" subpath. // The package.json "exports" map resolves this subpath's types to exactly this file, but tsc's // own emit mirrors the src/ tree (demo/server-side/index.d.ts) rather than the flattened // dist/vite-plugins/demo.js layout vite builds — so this file is written by hand. Keep it in // sync with the public surface of src/vite-plugins/demo/server-side/index.ts. import type { Plugin } from 'vite'; import type { IncomingMessage, ServerResponse } from 'http'; export interface DemoPluginOptions { components?: string[]; grid?: { columns?: string; gap?: string; minWidth?: string; }; css?: string; js?: string; formbuilder?: { languages?: string[]; defaultLanguage?: 'ar' | 'en' | string; }; } export declare function sallaDemoPlugin(options?: DemoPluginOptions): Plugin; export declare function handleTemplatesRequest(req: IncomingMessage, res: ServerResponse): Promise; export declare function buildPreSeedScript(components: any[]): string; export interface GeneratePublicPreviewResult { name: string; files: string[]; } /** * @deprecated The static public-preview generator was removed — previews are now rendered * on demand by the public-preview Worker at https://salla.design/preview//