@codepress/codepress-engine 0.4.0-dev.tsc.20251014034858

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ import { type FastifyInstance } from "fastify";
2
+ interface StartServerOptions {
3
+ port?: number;
4
+ }
5
+ /**
6
+ * Create and configure the Fastify app
7
+ * @returns {Object} The configured Fastify instance
8
+ */
9
+ declare function createApp(): FastifyInstance;
10
+ /**
11
+ * Starts the Codepress development server if not already running
12
+ * @param {Object} options Server configuration options
13
+ * @param {number} [options.port=4321] Port to run the server on
14
+ * @returns {Object|null} The Fastify instance or null if already running
15
+ */
16
+ declare function startServer(options?: StartServerOptions): Promise<FastifyInstance | null>;
17
+ /**
18
+ * Get a list of files in the current project, respecting gitignore patterns
19
+ * @returns {string} List of file paths, one per line
20
+ */
21
+ declare function getProjectStructure(): string;
22
+ interface ServerModule {
23
+ startServer: typeof startServer;
24
+ createApp: typeof createApp;
25
+ getProjectStructure: typeof getProjectStructure;
26
+ server?: FastifyInstance | null;
27
+ }
28
+ export { createApp, getProjectStructure, startServer };
29
+ export type { ServerModule };