/** * YAML role loader for rolebox. * * Scans a rolebox directory for role definitions (role.yaml files) * and returns a Map of parsed and validated RoleConfig objects keyed * by their directory name (roleId). * * Handles: YAML parsing, prompt_file loading, env var resolution, * graceful skip-on-error, and empty-directory / nonexistent-directory cases. */ import type { RoleConfig, SubAgentConfig } from "../types.ts"; import type { Logger, ILogObj } from "tslog"; /** @internal Test seam — swap the module-level logger for a mock. */ export declare function __setLoggerForTest(mockLogger: Logger): void; export declare function validateRoleId(id: string): boolean; export declare function discoverRoles(roleboxDir: string): Promise>; export interface InheritanceResult { config: SubAgentConfig; inheritedFields: string[]; } export declare function applyInheritance(parent: RoleConfig, child: SubAgentConfig): SubAgentConfig; export declare function applyInheritance(parent: RoleConfig, child: SubAgentConfig, trackInheritance: true): InheritanceResult; //# sourceMappingURL=role-loader.d.ts.map