import { FunctionOptions } from "../functions/shared.js"; import { Name, Reversible, Value } from "../generalTypes.js"; import { MigrationOptions } from "../../migrationOptions.js"; import { DropTriggerOptions } from "./dropTrigger.js"; import { TriggerOptions } from "./shared.js"; //#region src/operations/triggers/createTrigger.d.ts type CreateTriggerFn1 = (tableName: Name, triggerName: string, triggerOptions: TriggerOptions & DropTriggerOptions) => string; type CreateTriggerFn2 = (tableName: Name, triggerName: string, triggerOptions: TriggerOptions & FunctionOptions & DropTriggerOptions, definition: Value) => string; type CreateTriggerFn = CreateTriggerFn1 | CreateTriggerFn2; type CreateTrigger = Reversible; declare function createTrigger(mOptions: MigrationOptions): CreateTrigger; //#endregion export { CreateTrigger, CreateTriggerFn, CreateTriggerFn1, CreateTriggerFn2, createTrigger };