export { McpToolMetadata, getMcpToolMetadata, isMcpToolReadOnly } from './adapters/claude/mcp/tool-metadata.js';
import '@anthropic-ai/claude-agent-sdk';
import './logger-RC7sPv0S.js';
import './types.js';
import '@posthog/git/handoff';

/**
 * PostHog-specific ACP extensions.
 *
 * These follow the ACP extensibility model:
 * - Custom notification methods are prefixed with `_posthog/`
 * - Custom data can be attached via `_meta` fields
 *
 * See: https://agentclientprotocol.com/docs/extensibility
 */
/**
 * Custom notification methods for PostHog-specific events.
 * Used with AgentSideConnection.extNotification() or Client.extNotification()
 */
declare const POSTHOG_NOTIFICATIONS: {
    /** Git branch was created for a task */
    readonly BRANCH_CREATED: "_posthog/branch_created";
    /** Task run has started execution */
    readonly RUN_STARTED: "_posthog/run_started";
    /** Task has completed (success or failure) */
    readonly TASK_COMPLETE: "_posthog/task_complete";
    /** Agent finished processing a turn (prompt returned, waiting for next input) */
    readonly TURN_COMPLETE: "_posthog/turn_complete";
    /** Error occurred during task execution */
    readonly ERROR: "_posthog/error";
    /** Console/log output from the agent */
    readonly CONSOLE: "_posthog/console";
    /** Maps taskRunId to agent's sessionId and adapter type (for resumption) */
    readonly SDK_SESSION: "_posthog/sdk_session";
    /** Git checkpoint captured for handoff */
    readonly GIT_CHECKPOINT: "_posthog/git_checkpoint";
    /** Agent mode changed (interactive/background) */
    readonly MODE_CHANGE: "_posthog/mode_change";
    /** Request to resume a session from previous state */
    readonly SESSION_RESUME: "_posthog/session/resume";
    /** User message sent from client to agent */
    readonly USER_MESSAGE: "_posthog/user_message";
    /** Request to cancel current operation */
    readonly CANCEL: "_posthog/cancel";
    /** Request to close the session */
    readonly CLOSE: "_posthog/close";
    /** Agent status update (thinking, working, etc.) */
    readonly STATUS: "_posthog/status";
    /** Structured backend progress notification; events in the same turn group into one card on the client */
    readonly PROGRESS: "_posthog/progress";
    /** Task-level notification (progress, milestones) */
    readonly TASK_NOTIFICATION: "_posthog/task_notification";
    /** Marks a boundary for log compaction */
    readonly COMPACT_BOUNDARY: "_posthog/compact_boundary";
    /** Token usage update for a session turn */
    readonly USAGE_UPDATE: "_posthog/usage_update";
    /** Response to a relayed permission request (plan approval, question) */
    readonly PERMISSION_RESPONSE: "_posthog/permission_response";
};
type PosthogNotification = (typeof POSTHOG_NOTIFICATIONS)[keyof typeof POSTHOG_NOTIFICATIONS];
/** Dispatcher check for incoming `extNotification` calls on the agent side. */
declare function isNotification(method: string | undefined, expected: PosthogNotification): boolean;

export { POSTHOG_NOTIFICATIONS, isNotification };
