import type { SessionTreeEntry } from "@earendil-works/pi-agent-core"; import type { AnyModel, Message, ProviderResponse, Tool } from "@earendil-works/pi-ai"; export type PiServerProviderCallbackRequest = { callbackId: string; kind: "payload"; model: AnyModel; payload: unknown; } | { callbackId: string; kind: "response"; model: AnyModel; response: ProviderResponse; }; export interface PiServerStaticContext { systemPrompt?: string; tools?: Tool[]; } export declare function hashPiServerStaticContext(context: PiServerStaticContext | undefined): string; export declare function hashPiServerProviderMessages(messages: readonly Message[]): string; export declare const PI_SERVER_EMPTY_TREE_HASH: string; export declare function hashPiServerTreeEntry(entry: SessionTreeEntry): string; export declare function appendPiServerTreeHash(previousHash: string, entryHash: string): string; export declare function buildPiServerTreePrefixHashes(entries: SessionTreeEntry[]): string[]; export declare function hashPiServerSessionEntries(entries: SessionTreeEntry[]): string; //# sourceMappingURL=pi-server-protocol.d.ts.map