import { BasePromptElementProps, PromptElement, Raw } from '@vscode/prompt-tsx'; export declare const MISSING_STATEFUL_TOOL_RESULT: string; export type StatefulMarkerWithModel = { modelId: string; marker: string; /** * The local summary generation included when an extension-contributed/BYOK * response created this marker. Used only to filter stale markers before * crossing the `vscode.lm` boundary; first-party state is managed separately. */ summarizedAtRoundId?: string; }; export interface IStatefulMarkerContainerProps extends BasePromptElementProps { statefulMarker: StatefulMarkerWithModel; } /** * Helper to store the statefulMarker as part of a prompt-tsx assistant message */ export declare class StatefulMarkerContainer extends PromptElement { render(): any; } /** * Check whether an opaque content part is a StatefulMarkerContainer and retrieve the stateful marker if so */ export declare function rawPartAsStatefulMarker(part: Raw.ChatCompletionContentPartOpaque): StatefulMarkerWithModel | undefined; export declare function encodeStatefulMarker(modelId: string, marker: string): Uint8Array; export declare function decodeStatefulMarker(data: Uint8Array): StatefulMarkerWithModel; /** Gets stateful markers from the messages, from the most to least recent */ export declare function getAllStatefulMarkersAndIndicies(messages: readonly Raw.ChatMessage[]): Generator<{ statefulMarker: StatefulMarkerWithModel; index: number; }, undefined, unknown>; export declare function getStatefulMarkerAndIndex(modelId: string, messages: readonly Raw.ChatMessage[]): { statefulMarker: string; index: number; } | undefined; /** * Finds the message index of a specific stateful marker value in the message history. * Returns the index if found, undefined otherwise. */ export declare function getIndexOfStatefulMarker(markerValue: string, messages: readonly Raw.ChatMessage[]): number | undefined; //# sourceMappingURL=statefulMarkerContainer.d.ts.map