import { Constructor } from '@tdm/core'; import { AdapterStatic } from '../fw'; /** * @internal */ export declare const DAOContextSymbol: unique symbol; export interface DAOContext { /** * The target (resource) to use. */ target: Constructor; /** * The adapter to use. */ adapter: AdapterStatic; /** * Additional data to pass to the DAO. */ factoryArgs?: T; } export interface DAOMethodType { findById: any; find: any; findOne: any; query: any; findAll: any; create: any; update: any; replace: any; remove: any; /** * Clear the whole table representing a resource. */ clear: any; } export declare type DAOMethods = { [P in keyof DAOMethodType]: any; }; export declare const DAOMethods: DAOMethods;