import { PrismaQlDSLAction, PrismaQLDSLCommand, PrismaQLParsedDSL, PrismaQlDSLType } from '../dsl.js'; import { PrismaQlSchemaData } from '../prisma-schema-loader.js'; export type PrismaQLHandlerResponse = { dsl: PrismaQLParsedDSL; result?: any; error?: string | Error; }; export type PrismaQlHandler = (prismaState: PrismaQlSchemaData, dsl: PrismaQLParsedDSL) => PrismaQLHandlerResponse; export declare const handlerResponse: (dsl: PrismaQLParsedDSL) => { error: (error: string | Error) => PrismaQLHandlerResponse; result: (result: any) => PrismaQLHandlerResponse; }; export declare class PrismaQlHandlerRegistry { protected handlers: Record>; constructor(initialHandlers?: Record>); register(action: A, command: C, handler: PrismaQlHandler): void; execute(action: A, command: C, prismaState: PrismaQlSchemaData | null, dsl: PrismaQLParsedDSL): PrismaQLHandlerResponse; } //# sourceMappingURL=handler-registry.d.ts.map