/** * Base repository interface providing common repository functionality */ export declare abstract class BaseRepository { /** * Check if entity exists by ID */ abstract exists(id: number): Promise; /** * Find entity by ID */ abstract findById(id: number): Promise; /** * Save entity (create or update) * Returns the saved entity with generated ID if it was a new entity */ abstract save(entity: T): Promise; /** * Delete entity by ID */ abstract delete(id: number): Promise; /** * Get entity by ID or throw NotFoundError */ protected getByIdOrThrow(id: number): Promise; /** * Check if entity exists and throw ConflictError if it does */ protected checkNotExists(id: number, entityType: string): Promise; /** * Check if entity exists and throw NotFoundError if it doesn't */ protected checkExists(id: number, entityType: string): Promise; } //# sourceMappingURL=BaseRepository.d.ts.map