Files
oh-my-opencode/dist/plugin/event.d.ts
T
2026-03-14 04:56:50 +00:00

22 lines
797 B
TypeScript

import type { OhMyOpenCodeConfig } from "../config";
import type { PluginContext } from "./types";
import type { CreatedHooks } from "../create-hooks";
import type { Managers } from "../create-managers";
type FirstMessageVariantGate = {
markSessionCreated: (sessionInfo: {
id?: string;
title?: string;
parentID?: string;
} | undefined) => void;
clear: (sessionID: string) => void;
};
type EventInput = Parameters<NonNullable<NonNullable<CreatedHooks["writeExistingFileGuard"]>["event"]>>[0];
export declare function createEventHandler(args: {
ctx: PluginContext;
pluginConfig: OhMyOpenCodeConfig;
firstMessageVariantGate: FirstMessageVariantGate;
managers: Managers;
hooks: CreatedHooks;
}): (input: EventInput) => Promise<void>;
export {};