import { Elysia } from 'elysia'; /** * Helper to load config from .env file * Checks in order: .env.local, .env * Validates that required environment variables are present */ export declare function loadConfigFromDotEnv(): any; /** * Helper to load config from YAML file * Checks in order: config.yaml.local, config.local.yaml, config.yaml */ export declare function loadConfigFromYAML(): any; /** * Helper to load config from both config.yaml and .env files * Precedence: config.yaml > .env > defaults */ export declare function loadConfig(): any; /** * Inject config values into process.env for global access * Recursively flattens nested config: config.server.db.host -> process.env.SERVER_DB_HOST */ export declare function injectConfigToEnv(config: any, prefix?: string): void; export type ServerOptions = { routerDir?: string; staticDir?: string; port?: number; env?: 'development' | 'production'; middleware?: ((app: Elysia) => void)[]; }; export declare function createFrameworkServer(opts?: ServerOptions): Promise<{ app: Elysia<"", { decorator: {}; store: {}; derive: {}; resolve: {}; }, { typebox: {}; error: {}; }, { schema: {}; standaloneSchema: {}; macro: {}; macroFn: {}; parser: {}; response: {}; }, {}, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }>; listen: (p?: number) => Elysia<"", { decorator: {}; store: {}; derive: {}; resolve: {}; }, { typebox: {}; error: {}; }, { schema: {}; standaloneSchema: {}; macro: {}; macroFn: {}; parser: {}; response: {}; }, {}, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }>; }>; //# sourceMappingURL=createServer.d.ts.map