import { type EntitySubscriberInterface, type InsertEvent } from 'typeorm'; import { Domain } from './domain.js'; export type DomainCreatedHandler = (domain: Domain) => unknown | Promise; /** Call `handle` for every domain created from now on, after its transaction commits. Returns a way to stop. */ export declare function onDomainCreated(name: string, handle: DomainCreatedHandler): () => void; export declare class DomainCreatedSubscriber implements EntitySubscriberInterface { listenTo(): typeof Domain; afterInsert(event: InsertEvent): Promise; }