import type { IssueRef } from '@generacy-ai/cockpit'; export type BodyShape = 'phased' | 'flat'; export type ScopeMutation = { kind: 'add'; ref: IssueRef; } | { kind: 'remove'; ref: IssueRef; }; export interface ScopeWriteResult { noop: boolean; body: string; shape: BodyShape; } export declare function detectShape(body: string): BodyShape; /** * Pure body writer. Applies the mutation according to shape rules described * in contracts/scope-writer.md. Idempotent in both directions. */ export declare function applyScopeMutation(body: string, mutation: ScopeMutation): ScopeWriteResult; //# sourceMappingURL=writer.d.ts.map