/** * Notification hook event. * * Fires when Claude Code sends a notification to the user — permission * prompts, idle prompts, auth success, elicitation dialog. Supports a * matcher on `notification_type`. The hook cannot block or modify the * notification; use common output fields for user-visible side effects. * See https://code.claude.com/docs/en/hooks#notification. * * @since 0.1.0 */ import * as Effect from 'effect/Effect'; import * as Schema from 'effect/Schema'; import type { HookContext } from '../Context.js'; import type { HookDefinition } from '../Runner.js'; export declare const NotificationType: Schema.Literals; declare const Input_base: Schema.Class; readonly message: Schema.String; readonly title: Schema.optional; readonly notification_type: Schema.Literals; readonly session_id: Schema.String; readonly transcript_path: Schema.String; readonly cwd: Schema.String; readonly permission_mode: Schema.optionalKey; readonly effort: Schema.optionalKey; readonly agent_id: Schema.optionalKey; readonly agent_type: Schema.optionalKey; }>, {}>; export declare class Input extends Input_base { } declare const Output_base: Schema.Class; readonly stopReason: Schema.optional; readonly suppressOutput: Schema.optional; readonly systemMessage: Schema.optional; readonly terminalSequence: Schema.optional; }>, {}>; export declare class Output extends Output_base { } /** * No-op output — notification proceeds unchanged. * * @category Decisions * @since 0.1.0 */ export declare const passthrough: () => Output; /** * Show a user-visible message for the notification. * * @deprecated Notification does not support `additionalContext`; this helper * emits `systemMessage` instead. * @category Decisions * @since 0.1.0 */ export declare const addContext: (additionalContext: string) => Output; export declare const define: (config: { readonly handler: (input: Input) => Effect.Effect; }) => HookDefinition; /** * Build a Notification hook that only handles matching `notification_type` * values. * * @category Constructors * @since 0.1.0 */ export declare const onMatcher: (config: { readonly matcher: string | RegExp; readonly handler: (input: Input) => Effect.Effect; readonly onMismatch?: (input: Input) => Effect.Effect; }) => HookDefinition; export {}; //# sourceMappingURL=Notification.d.ts.map