import { BaseRecord, BaseResource, Filter } from 'adminjs'; import { BaseEntity } from 'typeorm'; import { Property } from './Property.js'; type ParamsType = Record; export declare class Resource extends BaseResource { static validate: any; private model; private propsObject; constructor(model: typeof BaseEntity); databaseName(): string; databaseType(): string; name(): string; id(): string; idName(): string; properties(): Array; property(path: string): Property; count(filter: Filter): Promise; find(filter: Filter, params: any): Promise>; findOne(id: string | number): Promise; findMany(ids: Array): Promise>; create(params: Record): Promise; update(pk: string | number, params?: any): Promise; delete(pk: string | number): Promise; private prepareProps; /** Converts params from string to final type */ private prepareParams; validateAndSave(instance: BaseEntity): Promise; static isAdapterFor(rawResource: any): boolean; } export {};