/** * Team Markdown I/O — parse and serialize team.md files. * * Wraps the existing `parseTeamMarkdown()` from markdown-migration.ts * and adds serialization for round-trip support. * * @module state/io/team-io */ import { type ParsedAgent } from '../../config/markdown-migration.js'; export type { ParsedAgent }; /** * Optional metadata for the team.md file header. */ export interface TeamMetadata { /** Team name displayed in the title */ teamName?: string; /** Tagline shown below the title */ tagline?: string; } /** Result of parsing a team.md file. */ export interface ParsedTeam { agents: ParsedAgent[]; projectContext: string; } /** * Parse team markdown into typed agent entries and project context. * Delegates agent parsing to `parseTeamMarkdown()` and also extracts * the project context section above the members table. */ export declare function parseTeam(markdown: string): ParsedTeam; /** * Serialize agents to a full team.md file. * * Produces the canonical table format: * ``` * # Team Name * * ## Members * * | Name | Role | Charter | Status | * |------|------|---------|--------| * | Agent | Developer | `.squad/agents/agent/charter.md` | ✅ Active | * ``` */ export declare function serializeTeam(agents: ParsedAgent[], metadata?: TeamMetadata): string; //# sourceMappingURL=team-io.d.ts.map