import type { OpenCodeTurnMessage } from "./opencode-turn.js"; export declare function openCodeCompletionPrompt(options?: { mapChat?: boolean; token?: string; }): { system: string; }; /** * The token for the next request in this conversation. Models copy the marker * from their own earlier answers, so a token minted per request turned those * answers into missing ones (SAP-3876). Reuse the latest token this server * minted that the model already echoes, else the conversation's first one; a * token the model made up is never adopted. */ export declare function openCodeConversationToken(messages: readonly OpenCodeTurnMessage[]): string | undefined; export declare function openCodeCompletionTokens(messages: readonly OpenCodeTurnMessage[]): Map; export declare function parseOpenCodeCompletion(text: string, token: string): { status: "failed" | "finished"; answer: string; } | undefined; /** Hide markers; with streaming enabled, also withhold still-valid partial candidates. */ export declare function openCodeVisibleText(text: string, token: string | undefined, streaming?: boolean): string; /** Filter across part boundaries; settled responses retain incomplete marker syntax. */ export declare function openCodeVisibleParts(parts: readonly { type: string; text?: string; }[], token: string | undefined, streaming?: boolean): (string | undefined)[]; //# sourceMappingURL=opencode-completion.d.ts.map