import type { AgentConfig, AgentEvent, AgentResult } from "@clinebot/agents";
import type * as LlmsProviders from "@clinebot/llms/providers";
import type { SessionRecord } from "../../types/sessions";
import type { SessionRow } from "../session-service";
import type { StoredMessageWithMetadata } from "./types";
export declare function extractWorkspaceMetadataFromSystemPrompt(systemPrompt: string): string | undefined;
export declare function hasRuntimeHooks(hooks: AgentConfig["hooks"]): boolean;
export declare function mergeAgentExtensions(explicitExtensions: AgentConfig["extensions"] | undefined, loadedExtensions: AgentConfig["extensions"] | undefined): AgentConfig["extensions"];
export declare function serializeAgentEvent(event: AgentEvent): string;
export declare function withLatestAssistantTurnMetadata(messages: LlmsProviders.Message[], result: AgentResult, previousMessages?: LlmsProviders.MessageWithMetadata[]): StoredMessageWithMetadata[];
export declare function toSessionRecord(row: SessionRow): SessionRecord;
//# sourceMappingURL=helpers.d.ts.map