import { g as RadsConfig, T as TypeDefinition } from './types-70e9b2d4.js'; import 'mssql'; import '_rads-db'; declare function defineRadsConfig(config: RadsConfig): RadsConfig; interface SchemaFromFilesEntityRule { /** Directory path(s) or glob pattern(s) this rule applies to */ path: string | string[]; /** Entity class name must start with this prefix */ namePrefix?: string; /** Custom validator — return an error message to reject the entity, or throw */ validate?: (entityName: string, filePath: string) => string | void; } interface SchemaFromFilesOptions { entityRules?: SchemaFromFilesEntityRule[]; } /** * Loads all typescript files with @entity() decorated classes from the given path(s), * parses them and outputs a merged schema. * @param paths - path(s) from project root to folder(s) with entity files; may include glob patterns * @param options - optional validation rules per path * @returns schema loader function */ declare function schemaFromFiles(paths: string | string[], options?: SchemaFromFilesOptions): () => Promise<{ schema: Record; entitiesDir: string | undefined; entitiesDirs: string[]; }>; /** * Loads schema from the rads api. * @param radsApiUrl - URL where to download schema fiels, e.g. 'https://radsjs.com/api/' * @returns schema object */ declare function schemaFromRadsApi(radsApiUrl: string): () => Promise<{ schema: any; }>; export { SchemaFromFilesEntityRule, SchemaFromFilesOptions, defineRadsConfig, schemaFromFiles, schemaFromRadsApi };