import type { DboBuilder } from "../DboBuilder/DboBuilder"; import type { ValidatedWatchSchemaType } from "./getValidatedWatchSchemaType"; export type VoidFunction = () => void; export type OnSchemaChangeCallback = (event: { command: string | undefined; query: string; }) => void; export declare class SchemaWatch { dboBuilder: DboBuilder; type: ValidatedWatchSchemaType; private constructor(); static create: (dboBuilder: DboBuilder) => Promise; /** * Fallback for watchSchema in case of not a superuser (cannot add db event listener) */ onSchemaChangeFallback: OnSchemaChangeCallback | undefined; onSchemaChange: OnSchemaChangeCallback | undefined; } //# sourceMappingURL=SchemaWatch.d.ts.map