import type { CompiledSourceItemV2, SourceItemKind } from "./long-task-delivery-types.js"; interface OpenSourceItem { key: string; kind: SourceItemKind; aspect?: CompiledSourceItemV2["aspect"]; risk_semantics?: CompiledSourceItemV2["risk_semantics"]; lines: string[]; line: number; } interface OpenSourceBackground { key: string; reason: string; substantiveLines: number; line: number; } export interface OwnedSourceParseState { sourcePath: string; items: CompiledSourceItemV2[]; seen: Set; seenBackground: Set; open: OpenSourceItem | null; background: OpenSourceBackground | null; } export declare function consumeSourceItemBoundary(state: OwnedSourceParseState, line: string, lineNumber: number): boolean; export declare function consumeBackgroundBoundary(state: OwnedSourceParseState, line: string, lineNumber: number): boolean; export declare function assertNoOpenOwnedSection(state: OwnedSourceParseState, lineNumber: number): void; export declare function consumeOwnedText(state: OwnedSourceParseState, line: string, lineNumber: number): void; export declare function assertOwnedSourceSectionsClosed(state: OwnedSourceParseState): void; export {};