export declare const loadConfig: <T extends object>(params?: T) => Promise<T>;
/**
 * Loads the xy.config from a specific workspace directory.
 * Returns an empty object if the workspace has no config or if
 * the found config is the root config (avoids double-applying).
 */
export declare function loadWorkspaceConfig(workspaceDir: string): Promise<Record<string, unknown>>;
export declare function resolveCommandFieldForTesting(cfg: Record<string, unknown>, commandName: string, configPath?: string): Record<string, unknown>;
export declare function mergeCommandConfig(rootCmd: Record<string, unknown>, workspaceCmd: Record<string, unknown>, commandName: string): Record<string, unknown>;
export declare function loadWorkspaceCommandConfig<C>(workspaceDir: string, commandName: string): Promise<C>;
//# sourceMappingURL=loadConfig.d.ts.map