import type { TSchema } from '../templates'; import type { Caller, DataSource } from '@forestadmin/datasource-toolkit'; import RelaxedDataSource from './relaxed-wrappers/datasource'; export default class AgentCustomizationContext { private realDataSource; private _caller; get dataSource(): RelaxedDataSource; constructor(dataSource: DataSource, caller: Caller); get caller(): Readonly; /** * Stop hooks execution and send Validation error to the UI * @param message the validation error message * @example * .throwValidationError('My validation error message'); */ throwValidationError(message: string): never; /** * Stop hooks execution and send Forbidden error to the UI * @param message the forbidden error message * @example * .throwForbiddenError('My forbidden error message'); */ throwForbiddenError(message: string): never; /** * Stop hooks execution and send error to the UI * @param message the error message * @example * .throwError('My error message'); */ throwError(message: string): never; } //# sourceMappingURL=agent-context.d.ts.map