import type { FileCitation } from '../models/filecitation.js'; import type { FilePath } from '../models/filepath.js'; import type { FunctionCallArgsDeltaEvent } from '../models/functioncallargsdeltaevent.js'; import type { FunctionCallArgsDoneEvent } from '../models/functioncallargsdoneevent.js'; import type { OpenAIResponsesRefusalContent } from '../models/openairesponsesrefusalcontent.js'; import type { OutputFileSearchCallItem } from '../models/outputfilesearchcallitem.js'; import type { OutputFunctionCallItem } from '../models/outputfunctioncallitem.js'; import type { OutputImageGenerationCallItem } from '../models/outputimagegenerationcallitem.js'; import type { OutputMessage } from '../models/outputmessage.js'; import type { OutputReasoningItem } from '../models/outputreasoningitem.js'; import type { OutputWebSearchCallItem } from '../models/outputwebsearchcallitem.js'; import type { ReasoningDeltaEvent } from '../models/reasoningdeltaevent.js'; import type { ResponseOutputText } from '../models/responseoutputtext.js'; import type { StreamEvents } from '../models/streamevents.js'; import type { StreamEventsResponseCompleted } from '../models/streameventsresponsecompleted.js'; import type { StreamEventsResponseFailed } from '../models/streameventsresponsefailed.js'; import type { StreamEventsResponseIncomplete } from '../models/streameventsresponseincomplete.js'; import type { StreamEventsResponseOutputItemAdded } from '../models/streameventsresponseoutputitemadded.js'; import type { StreamEventsResponseOutputItemDone } from '../models/streameventsresponseoutputitemdone.js'; import type { TextDeltaEvent } from '../models/textdeltaevent.js'; import type { URLCitation } from '../models/urlcitation.js'; /** * Type guards for OpenResponses stream events * These enable proper TypeScript narrowing without type casts */ export declare function isOutputTextDeltaEvent(event: StreamEvents): event is TextDeltaEvent; export declare function isReasoningDeltaEvent(event: StreamEvents): event is ReasoningDeltaEvent; export declare function isFunctionCallArgumentsDeltaEvent(event: StreamEvents): event is FunctionCallArgsDeltaEvent; export declare function isOutputItemAddedEvent(event: StreamEvents): event is StreamEventsResponseOutputItemAdded; export declare function isOutputItemDoneEvent(event: StreamEvents): event is StreamEventsResponseOutputItemDone; export declare function isResponseCompletedEvent(event: StreamEvents): event is StreamEventsResponseCompleted; export declare function isResponseFailedEvent(event: StreamEvents): event is StreamEventsResponseFailed; export declare function isResponseIncompleteEvent(event: StreamEvents): event is StreamEventsResponseIncomplete; export declare function isFunctionCallArgumentsDoneEvent(event: StreamEvents): event is FunctionCallArgsDoneEvent; export declare function isOutputMessage(item: unknown): item is OutputMessage; export declare function isFunctionCallItem(item: unknown): item is OutputFunctionCallItem; export declare function isReasoningOutputItem(item: unknown): item is OutputReasoningItem; export declare function isWebSearchCallOutputItem(item: unknown): item is OutputWebSearchCallItem; export declare function isFileSearchCallOutputItem(item: unknown): item is OutputFileSearchCallItem; export declare function isImageGenerationCallOutputItem(item: unknown): item is OutputImageGenerationCallItem; export declare function isOutputTextPart(part: unknown): part is ResponseOutputText; export declare function isRefusalPart(part: unknown): part is OpenAIResponsesRefusalContent; export declare function isFileCitationAnnotation(annotation: unknown): annotation is FileCitation; export declare function isURLCitationAnnotation(annotation: unknown): annotation is URLCitation; export declare function isFilePathAnnotation(annotation: unknown): annotation is FilePath; export declare function hasTypeProperty(item: unknown): item is { type: string; }; //# sourceMappingURL=stream-type-guards.d.ts.map