/** * Stale commitments: an old owner promise is re-checked before it is * resurfaced (incident 2026-10-12, TKT-334). * * @module services/open-items/stale-commitment */ import type { Request } from '../../types/v2/request.types.js'; import type { RequestOpenItem } from '../../types/v2/open-item.types.js'; /** * Whether a commitment is old enough that it must be re-checked before it is * resurfaced (incident 2026-10-12, TKT-334: a five-day-old "save the draft in * info@ once Zoho is connected" was acted on after the owner had sent the * email himself). * * @param item - Commitment * @param now - Clock * @returns True when older than {@link OPEN_ITEMS_CONSTANTS.STALE_VERIFY_AFTER_MS} */ export declare function isStaleCommitment(item: Pick, now: Date): boolean; /** * Why an old commitment no longer needs doing, judged only from what Crewly * already knows: its ticket is done / cancelled, or someone other than the * promising agent (the owner) posted in the ticket's thread after the promise. * Young commitments are never judged here. * * @param request - Its request * @param item - Commitment * @param now - Clock * @returns The reason (for `closedReason`), or null when it may still be needed */ export declare function supersededReason(request: Pick, item: RequestOpenItem, now: Date): string | null; /** * The line added to every prompt that resurfaces an old commitment. * * @param item - Commitment * @param now - Clock * @returns The notice, or '' when the commitment is not old */ export declare function staleCommitmentNotice(item: Pick, now: Date): string; //# sourceMappingURL=stale-commitment.d.ts.map