import type { OneShotDestination, OneShotFollowUpDto, StopOneShotFollowUpResponse } from '@xopcai/gateway-contract'; import type { Config } from '../../../config/schema.js'; export interface CreateOneShotFollowUpInput { conversationId: string; config: Config; entryId: string; sessionInputId?: string; taskId: string; waitId: string; subject?: string; summary?: string; destination?: OneShotDestination; checkAt?: number; checkAtLocal?: string; validUntil?: number; validUntilLocal?: string; confirmReplace?: boolean; canReadTask?: (taskId: string) => boolean; now?: number; } export type CreateOneShotFollowUpResult = { outcome: 'created' | 'replayed_input' | 'reused_active'; followUp: OneShotFollowUpDto; validUntilSource: 'user' | 'task_due' | 'default_window'; scheduleIntervalMs?: number; } | { outcome: 'conflict_existing_active'; existing: OneShotFollowUpDto; }; export declare function createOrReuseOneShotFollowUp(input: CreateOneShotFollowUpInput): CreateOneShotFollowUpResult; export declare function stopOneShotFollowUp(input: { ownerId: string; followUpId: string; expectedRevision?: number; idempotencyKey: string; sourceEntryId?: string; canReadTask?: (taskId: string) => boolean; }, now?: number): StopOneShotFollowUpResponse;