/** * WorktreeCreate hook event. * * Fires when Claude Code is about to create a git worktree (e.g. for an * isolated subagent). Command-based hooks must print the worktree path * to stdout; HTTP-based hooks return the path as * `hookSpecificOutput.worktreePath`. Does not support a matcher. * See https://code.claude.com/docs/en/hooks#worktreecreate. * * @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, type HookProcessOutput } from '../Runner.js'; declare const Input_base: Schema.Class; readonly name: Schema.String; 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 HookSpecificOutput_base: Schema.Class; readonly worktreePath: Schema.String; }>, {}>; export declare class HookSpecificOutput extends HookSpecificOutput_base { } declare const Output_base: Schema.Class; readonly stopReason: Schema.optional; readonly suppressOutput: Schema.optional; readonly systemMessage: Schema.optional; readonly terminalSequence: Schema.optional; readonly hookSpecificOutput: Schema.optional; }>, {}>; export declare class Output extends Output_base { } /** * Indicate that the worktree was created at the given path. * * @category Decisions * @since 0.1.0 */ export declare const created: (worktreePath: string) => HookProcessOutput; /** * Build the JSON form used by HTTP WorktreeCreate hooks. * * @category Decisions * @since 0.1.0 */ export declare const createdHttp: (worktreePath: string) => Output; export declare const define: (config: { readonly handler: (input: Input) => Effect.Effect; }) => HookDefinition; export {}; //# sourceMappingURL=WorktreeCreate.d.ts.map