import type { AgentMessage } from "@sheason/pi-agent-core";
import type { CreateAgentSessionServicesOptions, ExtensionFactory, SessionBeforeCompactEvent, SessionBeforeTreeEvent, ToolDefinition } from "@sheason/pi-coding-agent";
type ResourceLoaderOptions = NonNullable<CreateAgentSessionServicesOptions["resourceLoaderOptions"]>;
export interface CreateDPiExtensionFactoryOptions {
    tools: readonly ToolDefinition[];
}
export declare function isDynamicMcpToolName(name: string): boolean;
export declare function appendDPiExtensionFactory(options: CreateAgentSessionServicesOptions["resourceLoaderOptions"], factory: ExtensionFactory): ResourceLoaderOptions;
export declare function createDPiExtensionFactory(options: CreateDPiExtensionFactoryOptions): ExtensionFactory;
export declare function addMessageSourceHeadersToCompactionPreparation(preparation: SessionBeforeCompactEvent["preparation"]): void;
export declare function addMessageSourceHeadersToTreePreparation(preparation: SessionBeforeTreeEvent["preparation"]): void;
export declare function addMessageSourceHeader(message: AgentMessage): AgentMessage;
export {};
//# sourceMappingURL=d-pi-extension.d.ts.map