///
import { IDAO, IBaseModel, IResultSearch, IPersistController } from '../interfaces';
import * as express from 'express';
/**
* devido problemas no @types/passport foi herdado o request
*/
export interface Request extends express.Request {
authInfo?: any;
user?: any;
login(user: any, done: (err: any) => void): void;
login(user: any, options: any, done: (err: any) => void): void;
logIn(user: any, done: (err: any) => void): void;
logIn(user: any, options: any, done: (err: any) => void): void;
logout(): void;
logOut(): void;
isAuthenticated(): boolean;
isUnauthenticated(): boolean;
}
export declare class BasePersistController implements IPersistController {
collection: IDAO;
constructor(collection: IDAO);
find(req: Request, res: express.Response, next?: express.NextFunction): Promise;
findAll(req: Request, res: express.Response, next?: express.NextFunction): Promise;
create(req: Request, res: express.Response, next?: express.NextFunction): Promise;
update(req: Request, res: express.Response, next?: express.NextFunction): Promise;
delete(req: Request, res: express.Response, next?: express.NextFunction): Promise;
query(req: Request, res: express.Response, next?: express.NextFunction): Promise>;
}