@primexop/pbk
Version:
Primexop Backend Kit - A powerful TypeScript utility for managing backend projects with features like B2F Portal integration, cross-project validation, and Next.js support
9 lines (8 loc) • 400 B
TypeScript
import { TPbkConfig } from "../types.js";
/**
* Loads and validates the PBK configuration from a JSON file
* @param configPath - Path to the config file (optional, defaults to pbk.config.json in current directory)
* @returns Validated TPbkConfig object
* @throws Error if the configuration is invalid or file doesn't exist
*/
export declare function loadConfig(configPath?: string): TPbkConfig;