import type { Plugin } from 'vite'; import { type ComponentTaggerOptions } from './component-tagger.js'; import { type VisualEditorOptions } from './visual-editor/index.js'; import { type DynamicComponentCreatorOptions } from './dynamic-component-creator.js'; export interface ProyectaPluginOptions { /** * Enable debug logging * @default false */ debug?: boolean; /** * Custom message to log during build * @default 'Proyecta plugin is running!' */ message?: string; /** * Enable Vite error handling and console logging * @default true */ handleViteErrors?: boolean; /** * Component tagger options * @default { enabled: true } */ componentTagger?: ComponentTaggerOptions & { enabled?: boolean; }; /** * Visual editor options * @default { enabled: true } */ visualEditor?: VisualEditorOptions & { enabled?: boolean; }; /** * Dynamic component creator options * Note: Only active when PROYECTA_DEV_MACHINE environment variable is set, * unless 'force' option is true * @default { enabled: true } */ dynamicComponentCreator?: DynamicComponentCreatorOptions & { enabled?: boolean; }; } /** * Proyecta Vite plugin for development workspace integration * Handles error reporting and console forwarding for the Proyecta platform */ export declare function proyecta(options?: ProyectaPluginOptions): Plugin[]; export { dynamicComponentCreatorPlugin, type DynamicComponentCreatorOptions, } from './dynamic-component-creator.js'; /** * The one route enumerator, and the one exclusion denylist. * * Exported from the package root because two in-repo consumers outside the * Vite dev server need them: the temporal-worker's publish path (which * enumerates routes from an untarred file map, never from a pod) and the * builder's verifier crawl. */ export { collectRoutes, collectRoutesFromDir, fileRouteIdSegments, publishableRoutes, resolveFileRoutePath, resolveFileRouteParents, type CollectedRoute, type RouteCollection, type RouteDiscovery, type RouteKind, } from './route-collector.js'; export { isExcludedRoute, normalizeRoutePath, routeSegments, ROUTE_EXCLUSION_FIRST_SEGMENTS, ROUTE_EXCLUSION_PATHS, ROUTE_EXCLUSION_SEGMENTS, } from './routeExclusions.js'; export { isSsrTransportTimeoutError, ssrRunnerResiliencePlugin, wrapSsrRunnerWithRecovery, SSR_ENVIRONMENT_NAME, SSR_TRANSPORT_TIMEOUT_ERROR_SNIPPET, type SsrEnvironmentGraphLike, type SsrRunnerLike, } from './ssr-runner-resilience.js'; export default proyecta; //# sourceMappingURL=index.d.ts.map