import type { OnEventScriptsByProvider, DBOnEventScript, DBTeam, DBEnvironment, OnEventType, OnEventScript } from '@nangohq/types';
export declare const onEventScriptService: {
    update({ environment, account, onEventScriptsByProvider }: {
        environment: DBEnvironment;
        account: DBTeam;
        onEventScriptsByProvider: OnEventScriptsByProvider[];
    }): Promise<OnEventScript[]>;
    getByEnvironmentId: (environmentId: number) => Promise<OnEventScript[]>;
    getByConfig: (configId: number, event: OnEventType) => Promise<DBOnEventScript[]>;
    diffChanges: ({ environmentId, onEventScriptsByProvider }: {
        environmentId: number;
        onEventScriptsByProvider: OnEventScriptsByProvider[];
    }) => Promise<{
        added: Omit<OnEventScript, 'id' | 'fileLocation' | 'createdAt' | 'updatedAt'>[];
        deleted: OnEventScript[];
        updated: OnEventScript[];
    }>;
};
