import * as _opencode_ai_plugin from '@opencode-ai/plugin'; import * as zod from 'zod'; /** * MemoryStack Plugin for OpenCode * * @example * // opencode.json * { * "plugin": ["@memorystack/opencode"] * } * * @example * // Environment variable * MEMORYSTACK_API_KEY=mem_live_... */ declare const MemoryStackPlugin: (ctx: { project?: { name?: string; }; client: any; directory: string; worktree?: string; $?: any; }) => Promise<{ 'session.created'?: undefined; 'message.part.updated'?: undefined; 'tool.execute.after'?: undefined; 'session.idle'?: undefined; 'experimental.session.compacting'?: undefined; tool?: undefined; } | { 'session.created': (input: any, output: any) => Promise; 'message.part.updated': (input: any, output: any) => Promise; 'tool.execute.after': (input: any, output: any) => Promise; 'session.idle': (input: any, output: any) => Promise; 'experimental.session.compacting': (input: any, output: any) => Promise; tool: { memory_search: { description: string; args: { query: zod.ZodString; scope: zod.ZodOptional>; }; execute(args: { query: string; scope?: "personal" | "project" | "both" | undefined; }, context: _opencode_ai_plugin.ToolContext): Promise; }; memory_save: { description: string; args: { content: zod.ZodString; scope: zod.ZodOptional>; memoryType: zod.ZodOptional>; }; execute(args: { content: string; scope?: "personal" | "project" | undefined; memoryType?: "knowledge" | "episodic" | "procedural" | undefined; }, context: _opencode_ai_plugin.ToolContext): Promise; }; }; }>; export { MemoryStackPlugin, MemoryStackPlugin as default };