import type { NativeHookEvent, LineEmitter } from '../../../types/claude-code-runtime.js';
/**
 * Parse a raw JSON line from the Claude Code hook protocol.
 * Returns undefined (and logs a warning) when the line is not a valid hook event.
 * @internal exported for testing
 */
export declare function parseNativeHookLine(line: string): NativeHookEvent | undefined;
/**
 * Translate a native hook event into a Planu autopilot event and emit it.
 * Unknown event types are silently ignored — never throw.
 * @internal exported for testing
 */
export declare function translateAndEmit(event: NativeHookEvent, projectPath: string): void;
/**
 * Subscribe to Claude Code native hook events from a line-emitting source.
 * Each JSON line on the source is parsed, translated, and emitted onto the
 * Planu autopilot event bus.
 *
 * Returns an unsubscribe function that removes the listener.
 *
 * When the source is unavailable (e.g., not running inside Claude Code) the
 * caller should skip calling this — there is no polling fallback here.
 */
export declare function subscribeToNativeHooks(source: LineEmitter, projectPath: string): () => void;
//# sourceMappingURL=native-hooks-consumer.d.ts.map