import { Knifecycle, type Dependencies } from 'knifecycle'; import { argv as _argv } from 'node:process'; import initQueryParserBuilder from './services/queryParserBuilder.js'; import initCommandRunner from './services/commandRunner.js'; export { initCommandRunner }; import initHTTPRouter, { SEARCH_SEPARATOR, PATH_SEPARATOR } from './services/httpRouter.js'; import initErrorHandler from './services/errorHandler.js'; import initHTTPTransaction from './services/httpTransaction.js'; import initObfuscatorService from './services/obfuscator.js'; import initAPMService from './services/apm.js'; export { DEFAULT_ERROR_URI, DEFAULT_HELP_URI, DEFAULT_ERRORS_DESCRIPTORS, DEFAULT_DEFAULT_ERROR_CODE, } from './services/errorHandler.js'; import initHTTPServer from './services/httpServer.js'; export { initHTTPServer }; export { DEFAULT_HTTP_SERVER_OPTIONS } from './services/httpServer.js'; import initHTTPSServer from './services/httpsServer.js'; export { initHTTPSServer }; export { DEFAULT_HTTPS_SERVER_OPTIONS } from './services/httpsServer.js'; import initSSLCertificates from './services/SSL_CERTIFICATES.js'; export { initSSLCertificates }; import initPort from './services/PORT.js'; import initHost from './services/HOST.js'; import initAvailablePort from './services/AVAILABLE_PORT.js'; import initInternalIP from './services/INTERNAL_IP.js'; import initProxiedENV from './services/PROXIED_ENV.js'; import initWhookResolvedPlugins, { WHOOK_DEFAULT_PLUGINS, WHOOK_PROJECT_PLUGIN_NAME } from './services/WHOOK_RESOLVED_PLUGINS.js'; import initDefinitions from './services/DEFINITIONS.js'; export * from './services/DEFINITIONS.js'; export type * from './services/DEFINITIONS.js'; import initCreateDirectoryFilesWalker from './services/createDirectoryFilesWalker.js'; export * from './services/createDirectoryFilesWalker.js'; export type * from './services/createDirectoryFilesWalker.js'; export { initCreateDirectoryFilesWalker }; import initRoutesDeclarations from './services/ROUTES_DECLARATIONS.js'; export { initRoutesDeclarations }; export * from './services/ROUTES_DECLARATIONS.js'; export type * from './services/ROUTES_DECLARATIONS.js'; import initRoutesWrappers from './services/ROUTES_WRAPPERS.js'; export { initRoutesWrappers }; export * from './services/ROUTES_WRAPPERS.js'; import initRoutesHandlers from './services/ROUTES_HANDLERS.js'; export { initRoutesHandlers }; export * from './services/ROUTES_HANDLERS.js'; import initCommandsDeclarations from './services/COMMANDS_DECLARATIONS.js'; export { initCommandsDeclarations }; export * from './services/COMMANDS_DECLARATIONS.js'; export type * from './services/COMMANDS_DECLARATIONS.js'; import initCommandsHandlers from './services/COMMANDS_HANDLERS.js'; export { initCommandsHandlers }; export * from './services/COMMANDS_HANDLERS.js'; export type * from './services/COMMANDS_HANDLERS.js'; import initCommandsWrappers from './services/COMMANDS_WRAPPERS.js'; export { initCommandsWrappers }; export * from './services/COMMANDS_WRAPPERS.js'; export type * from './services/COMMANDS_WRAPPERS.js'; import initCronsDeclarations from './services/CRONS_DECLARATIONS.js'; export { initCronsDeclarations }; export * from './services/CRONS_DECLARATIONS.js'; export type * from './services/CRONS_DECLARATIONS.js'; import initCronsWrappers from './services/CRONS_WRAPPERS.js'; export { initCronsWrappers }; export * from './services/CRONS_WRAPPERS.js'; export type * from './services/CRONS_WRAPPERS.js'; import initCronsHandlers from './services/CRONS_HANDLERS.js'; export { initCronsHandlers }; export * from './services/CRONS_HANDLERS.js'; import initConsumersDeclarations from './services/CONSUMERS_DECLARATIONS.js'; export { initConsumersDeclarations }; export * from './services/CONSUMERS_DECLARATIONS.js'; export type * from './services/CONSUMERS_DECLARATIONS.js'; import initConsumersWrappers from './services/CONSUMERS_WRAPPERS.js'; export { initConsumersWrappers }; export * from './services/CONSUMERS_WRAPPERS.js'; import initConsumersHandlers from './services/CONSUMERS_HANDLERS.js'; export { initConsumersHandlers }; export * from './services/CONSUMERS_HANDLERS.js'; import initTransformersDeclarations from './services/TRANSFORMERS_DECLARATIONS.js'; export { initTransformersDeclarations }; export * from './services/TRANSFORMERS_DECLARATIONS.js'; export type * from './services/TRANSFORMERS_DECLARATIONS.js'; import initTransformersWrappers from './services/TRANSFORMERS_WRAPPERS.js'; export { initTransformersWrappers }; export * from './services/TRANSFORMERS_WRAPPERS.js'; import initTransformersHandlers from './services/TRANSFORMERS_HANDLERS.js'; export { initTransformersHandlers }; export * from './services/TRANSFORMERS_HANDLERS.js'; import initWrappersDeclarations from './services/WRAPPERS_DECLARATIONS.js'; export { initWrappersDeclarations }; export * from './services/WRAPPERS_DECLARATIONS.js'; export type * from './services/WRAPPERS_DECLARATIONS.js'; import initMainHandler from './services/MAIN_HANDLER.js'; export { initMainHandler }; export * from './services/MAIN_HANDLER.js'; export type * from './services/MAIN_HANDLER.js'; import initRouteInvoker from './services/routeInvoker.js'; export { initRouteInvoker }; export * from './services/routeInvoker.js'; export type * from './services/routeInvoker.js'; export * from './services/schemaValidators.js'; import initAutoload from './services/_autoload.js'; import initGetPing, { definition as getPingDefinition } from './routes/getPing.js'; import initGetOpenAPI, { definition as getOpenAPIDefinition } from './routes/getOpenAPI.js'; import './types/errors.js'; export * from './libs/args.js'; export * from './libs/body.js'; export * from './libs/coercion.js'; export * from './libs/constants.js'; export * from './libs/declarations.js'; export * from './libs/environments.js'; export * from './libs/hash.js'; export * from './libs/headers.js'; export * from './libs/openapi.js'; export * from './libs/router.js'; export * from './libs/utils.js'; export * from './libs/validation.js'; export * from './libs/wrappers.js'; export * from './services/queryParserBuilder.js'; export type * from './libs/args.js'; export type * from './libs/declarations.js'; export type * from './libs/environments.js'; export type * from './libs/openapi.js'; export type * from './libs/validation.js'; export type * from './services/_autoload.js'; export type * from './services/AVAILABLE_PORT.js'; export type * from './services/DEFINITIONS.js'; export type * from './services/HOST.js'; export type * from './services/httpServer.js'; export type * from './services/httpsServer.js'; export type * from './services/INTERNAL_IP.js'; export type * from './services/PORT.js'; export type * from './services/PROXIED_ENV.js'; export type * from './services/routeInvoker.js'; export type * from './services/schemaValidators.js'; export type * from './services/SSL_CERTIFICATES.js'; export type * from './services/WHOOK_RESOLVED_PLUGINS.js'; export type * from './types/base.js'; export type * from './types/commands.js'; export type * from './types/consumers.js'; export type * from './types/crons.js'; export type * from './types/http.js'; export type * from './types/openapi.js'; export type * from './types/routes.js'; export type * from './types/transformers.js'; export type * from './types/wrappers.js'; export { SEARCH_SEPARATOR, PATH_SEPARATOR, initHTTPRouter }; export type * from './services/httpRouter.js'; export { initHTTPTransaction }; export type * from './services/httpTransaction.js'; export type * from './services/obfuscator.js'; export { initObfuscatorService }; export type * from './services/apm.js'; export { initAPMService }; export type * from './services/errorHandler.js'; export { initErrorHandler }; export { initQueryParserBuilder }; import initBaseURL from './services/BASE_URL.js'; export { initBaseURL }; export * from './services/BASE_URL.js'; export type * from './services/BASE_URL.js'; export { WHOOK_DEFAULT_PLUGINS, WHOOK_PROJECT_PLUGIN_NAME, initWhookResolvedPlugins, initGetPing, getPingDefinition, initGetOpenAPI, getOpenAPIDefinition, initAutoload, initDefinitions, initProxiedENV, initAvailablePort, initPort, initInternalIP, initHost, }; export declare const WHOOK_DEFAULT_INJECTED_NAMES: string[]; export declare function runProcess(innerPrepareEnvironment?: ($?: T) => Promise, innerPrepareProcess?: (injectedNames: string[], $: T) => Promise, injectedNames?: string[], argv?: typeof _argv): Promise; /** * Runs the Whook's process * @param {Array} servicesNames * Root dependencies names to instanciate and return * @param {Knifecycle} $ * The Knifecycle instance to use for the run * @returns Object * A promise of the injected services */ export declare function prepareProcess(servicesNames: string[], $: T): Promise; /** * Prepare the Whook process environment * @param {Knifecycle} $ * The Knifecycle instance to set the various services * @returns Promise * A promise of the Knifecycle instance */ export declare function prepareEnvironment($?: T): Promise;