/** * TaskCreated hook event. * * Fires when a task is created via `TaskCreate` (agent-team context). * A handler can block task creation by exiting 2 with stderr feedback. * Does not support a matcher. * See https://code.claude.com/docs/en/hooks#taskcreated. * * @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 task_id: Schema.String; readonly task_subject: Schema.String; readonly task_description: Schema.optional; readonly teammate_name: Schema.optional; readonly team_name: 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 allow: () => Output; /** * Block the task creation by exiting 2 with stderr feedback. * * @category Decisions * @since 0.1.0 */ export declare const block: (reason: string) => HookProcessOutput; /** * Stop the teammate entirely after this hook runs. * * @category Decisions * @since 0.1.0 */ export declare const stopTeammate: (reason: string) => Output; export declare const define: (config: { readonly handler: (input: Input) => Effect.Effect; }) => HookDefinition; export {}; //# sourceMappingURL=TaskCreated.d.ts.map