import { z } from "zod"; import { type Host } from "oh-my-plumb-schema"; declare const settingsSchema: z.ZodObject<{ hooks: z.ZodOptional; hooks: z.ZodArray; }, z.core.$loose>>; }, z.core.$loose>>>>; }, z.core.$loose>; type Settings = z.infer; export declare const OH_MY_PLUMB_HOOK_MARKER = "oh-my-plumb-hook.js"; export type HookEvent = "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop"; export type HookSpec = { event: HookEvent; matcher?: string; command: string; timeout: number; }; export declare const hookSpecs: (hookScript: string, opts?: { host: Host; toolCallRules: boolean; }) => HookSpec[]; /** Whether oh-my-plumb's hooks are installed in this settings file. */ export declare const hasOurHooks: (file: string) => boolean; export declare const readSettings: (file: string) => Settings; export declare const installHooks: (file: string, specs: readonly HookSpec[]) => void; export declare const uninstallHooks: (file: string) => number; export declare const installedHookEvents: (file: string) => HookEvent[]; export {}; //# sourceMappingURL=settings.d.ts.map