import type { Db } from '../storage/database.js'; import type { EventBus } from './events.js'; import type { ThreadBranch, Message } from '../types.js'; export declare class BranchService { private readonly db; private readonly events; constructor(db: Db, events: EventBus); /** Create a branch from any message. Returns the new branch. */ create(parentMessageId: number, createdBy: string, name?: string | null): ThreadBranch; /** Get a branch by ID. */ getById(id: number): ThreadBranch | null; /** List branches, optionally filtered by parent message. */ list(parentMessageId?: number): ThreadBranch[]; /** Get messages in a specific branch. */ branchMessages(branchId: number): Message[]; /** Count total branches. */ count(): number; } //# sourceMappingURL=branches.d.ts.map