import { KyselyDB, KyselyTransaction } from "../../../database/types/kysely.types";
import { Integration, InsertableIntegration, UpdatableIntegration } from "../../../database/types/entity.types";
export declare class IntegrationRepo {
    private readonly db;
    constructor(db: KyselyDB);
    findById(integrationId: string, trx?: KyselyTransaction): Promise<Integration | undefined>;
    findByWorkspaceAndType(workspaceId: string, type: string, trx?: KyselyTransaction): Promise<Integration | undefined>;
    findAllByWorkspace(workspaceId: string, trx?: KyselyTransaction): Promise<Integration[]>;
    insertOrRestore(integration: InsertableIntegration, trx?: KyselyTransaction): Promise<Integration>;
    update(integrationId: string, data: UpdatableIntegration, trx?: KyselyTransaction): Promise<Integration>;
    softDelete(integrationId: string, trx?: KyselyTransaction): Promise<void>;
    findByTypeAndSettingsField(type: string, key: string, value: string, trx?: KyselyTransaction): Promise<Integration | undefined>;
}
