/**
 * Declarative worktree hooks framework — native lift of worktrunk's hooks
 * feature per D030.
 *
 * Executes `post-create` and `post-start` hooks in the worktree directory.
 * Each hook runs via `sh -c <command>` with the worktree path as CWD.
 *
 * @task T1161
 */
import type { WorktreeHook, WorktreeHookResult } from '@cleocode/contracts';
/**
 * Execute a single declarative hook in the given worktree directory.
 *
 * @param hook - The hook definition to execute.
 * @param worktreePath - Absolute path to the worktree directory (CWD for hook).
 * @returns Hook execution result.
 */
export declare function runSingleHook(hook: WorktreeHook, worktreePath: string): Promise<WorktreeHookResult>;
/**
 * Run all hooks matching a given lifecycle event in order.
 *
 * Hooks are run sequentially. If a hook has `failOnError: true` and exits
 * non-zero, execution stops immediately and the error is propagated.
 *
 * @param hooks - All hook definitions (may include hooks for other events).
 * @param event - The lifecycle event to filter and run.
 * @param worktreePath - Absolute path to the worktree directory.
 * @returns Array of results for hooks that were executed.
 * @throws Error if a `failOnError` hook fails.
 */
export declare function runWorktreeHooks(hooks: readonly WorktreeHook[], event: WorktreeHook['event'], worktreePath: string): Promise<WorktreeHookResult[]>;
//# sourceMappingURL=worktree-hooks.d.ts.map