/** * InstructionsLoaded hook event. * * Fires when a CLAUDE.md or .claude/rules/*.md instruction file is loaded * into the session context. Observability-only — the hook's output is not * acted on. Supports a matcher on `load_reason`. * See https://code.claude.com/docs/en/hooks#instructionsloaded. * * @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 MemoryType: Schema.Literals; export declare const LoadReason: Schema.Literals; declare const Input_base: Schema.Class; readonly file_path: Schema.String; readonly memory_type: Schema.Literals; readonly load_reason: Schema.Literals; readonly globs: Schema.optional>; readonly trigger_file_path: Schema.optional; readonly parent_file_path: Schema.optional; 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 { } export declare const passthrough: () => Output; export declare const define: (config: { readonly handler: (input: Input) => Effect.Effect; }) => HookDefinition; /** * Build an InstructionsLoaded hook that only handles matching `load_reason` * 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=InstructionsLoaded.d.ts.map