/**
 * ADO Pull Sync — Bidirectional state synchronization
 *
 * Implements last-write-wins conflict resolution for pulling
 * ADO work item state changes back into SpecWeave metadata.
 *
 * @module ado-pull-sync
 */
export interface PullSyncContext {
    localStatus: string;
    localUpdatedAt: Date;
    adoState: string;
    adoModifiedAt: Date;
    workItemId: number;
    canUpsertInternalItems: boolean;
}
export interface PullSyncResult {
    changed: boolean;
    newStatus?: string;
    reason?: string;
}
/**
 * Map ADO work item states to SpecWeave statuses.
 *
 * Covers Agile/Scrum/Basic process templates.
 */
export declare function mapAdoStateToSpecweave(adoState: string): string;
/**
 * Determine if ADO changes should override local state.
 *
 * Uses last-write-wins: if ADO was modified more recently than local,
 * and the mapped state differs, update local metadata.
 */
export declare function pullAdoChanges(ctx: PullSyncContext): PullSyncResult;
//# sourceMappingURL=ado-pull-sync.d.ts.map